alinarus commited on
Commit
9ff4bea
·
verified ·
1 Parent(s): cd3cea8

Upload folder using huggingface_hub (part 18)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +4 -0
  2. player/runtime/python/Lib/site-packages/pyarrow-26.0.0.dist-info/DELVEWHEEL +2 -0
  3. player/runtime/python/Lib/site-packages/pyarrow-26.0.0.dist-info/INSTALLER +1 -0
  4. player/runtime/python/Lib/site-packages/pyarrow-26.0.0.dist-info/METADATA +78 -0
  5. player/runtime/python/Lib/site-packages/pyarrow-26.0.0.dist-info/RECORD +762 -0
  6. player/runtime/python/Lib/site-packages/pyarrow-26.0.0.dist-info/REQUESTED +0 -0
  7. player/runtime/python/Lib/site-packages/pyarrow-26.0.0.dist-info/WHEEL +5 -0
  8. player/runtime/python/Lib/site-packages/pyarrow-26.0.0.dist-info/licenses/LICENSE.txt +0 -0
  9. player/runtime/python/Lib/site-packages/pyarrow-26.0.0.dist-info/licenses/NOTICE.txt +81 -0
  10. player/runtime/python/Lib/site-packages/pyarrow.libs/msvcp140-0fa7eb792d3fbcf2233e4ea47e9144b9.dll +3 -0
  11. player/runtime/python/Lib/site-packages/pyarrow.libs/msvcp140_atomic_wait-aa4e4b3f35a38f595be5cf8631717b66.dll +0 -0
  12. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/json/reader.h +118 -0
  13. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/json/test_common.h +325 -0
  14. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/json/type_fwd.h +26 -0
  15. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/memory_pool.h +348 -0
  16. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/memory_pool_test.h +119 -0
  17. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/pretty_print.h +161 -0
  18. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/api.h +29 -0
  19. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/arrow_to_pandas.h +165 -0
  20. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/async.h +60 -0
  21. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/benchmark.h +36 -0
  22. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/common.h +471 -0
  23. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/config.h +47 -0
  24. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/csv.h +42 -0
  25. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/datetime.h +231 -0
  26. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/decimal.h +162 -0
  27. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/extension_type.h +85 -0
  28. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/filesystem.h +130 -0
  29. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/flight.h +355 -0
  30. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/gdb.h +29 -0
  31. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/helpers.h +166 -0
  32. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/inference.h +64 -0
  33. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/io.h +121 -0
  34. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/ipc.h +72 -0
  35. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/iterators.h +200 -0
  36. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/lib.h +79 -0
  37. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/lib_api.h +230 -0
  38. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/numpy_convert.h +122 -0
  39. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/numpy_init.h +27 -0
  40. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/numpy_interop.h +94 -0
  41. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/numpy_to_arrow.h +72 -0
  42. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/parquet_encryption.h +146 -0
  43. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/platform.h +35 -0
  44. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/pyarrow.h +89 -0
  45. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/pyarrow_api.h +19 -0
  46. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/pyarrow_lib.h +19 -0
  47. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/python_test.h +42 -0
  48. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/python_to_arrow.h +80 -0
  49. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/type_traits.h +353 -0
  50. player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/udf.h +81 -0
.gitattributes CHANGED
@@ -143,3 +143,7 @@ player/runtime/python/Lib/site-packages/pyarrow/arrow_python.lib filter=lfs diff
143
  player/runtime/python/Lib/site-packages/pyarrow/arrow_s3.dll filter=lfs diff=lfs merge=lfs -text
144
  player/runtime/python/Lib/site-packages/pyarrow/arrow_substrait.dll filter=lfs diff=lfs merge=lfs -text
145
  player/runtime/python/Lib/site-packages/pyarrow/arrow_substrait.lib filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
143
  player/runtime/python/Lib/site-packages/pyarrow/arrow_s3.dll filter=lfs diff=lfs merge=lfs -text
144
  player/runtime/python/Lib/site-packages/pyarrow/arrow_substrait.dll filter=lfs diff=lfs merge=lfs -text
145
  player/runtime/python/Lib/site-packages/pyarrow/arrow_substrait.lib filter=lfs diff=lfs merge=lfs -text
146
+ player/runtime/python/Lib/site-packages/pyarrow/lib.cp312-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
147
+ player/runtime/python/Lib/site-packages/pyarrow/parquet.dll filter=lfs diff=lfs merge=lfs -text
148
+ player/runtime/python/Lib/site-packages/pyarrow/parquet.lib filter=lfs diff=lfs merge=lfs -text
149
+ player/runtime/python/Lib/site-packages/pyarrow.libs/msvcp140-0fa7eb792d3fbcf2233e4ea47e9144b9.dll filter=lfs diff=lfs merge=lfs -text
player/runtime/python/Lib/site-packages/pyarrow-26.0.0.dist-info/DELVEWHEEL ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ Version: 1.13.1
2
+ Arguments: ['C:\\Users\\ContainerAdministrator\\AppData\\Local\\Python\\pythoncore-3.12-64\\Lib\\site-packages\\delvewheel\\__main__.py', 'repair', '-vv', '--ignore-existing', '--with-mangle', '-w', 'repaired_wheels', 'C:\\arrow\\python\\dist\\pyarrow-26.0.0-cp312-cp312-win_amd64.whl']
player/runtime/python/Lib/site-packages/pyarrow-26.0.0.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ uv
player/runtime/python/Lib/site-packages/pyarrow-26.0.0.dist-info/METADATA ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.4
2
+ Name: pyarrow
3
+ Version: 26.0.0
4
+ Summary: Python library for Apache Arrow
5
+ Maintainer-Email: Apache Arrow Developers <dev@arrow.apache.org>
6
+ License-Expression: Apache-2.0
7
+ License-File: LICENSE.txt
8
+ License-File: NOTICE.txt
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Classifier: Programming Language :: Python :: 3.13
12
+ Classifier: Programming Language :: Python :: 3.14
13
+ Classifier: Programming Language :: Python :: 3.15
14
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
15
+ Project-URL: Homepage, https://arrow.apache.org/
16
+ Project-URL: Documentation, https://arrow.apache.org/docs/python
17
+ Project-URL: Repository, https://github.com/apache/arrow
18
+ Project-URL: Issues, https://github.com/apache/arrow/issues
19
+ Requires-Python: >=3.11
20
+ Description-Content-Type: text/markdown
21
+
22
+ <!---
23
+ Licensed to the Apache Software Foundation (ASF) under one
24
+ or more contributor license agreements. See the NOTICE file
25
+ distributed with this work for additional information
26
+ regarding copyright ownership. The ASF licenses this file
27
+ to you under the Apache License, Version 2.0 (the
28
+ "License"); you may not use this file except in compliance
29
+ with the License. You may obtain a copy of the License at
30
+
31
+ http://www.apache.org/licenses/LICENSE-2.0
32
+
33
+ Unless required by applicable law or agreed to in writing,
34
+ software distributed under the License is distributed on an
35
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
36
+ KIND, either express or implied. See the License for the
37
+ specific language governing permissions and limitations
38
+ under the License.
39
+ -->
40
+
41
+ ## Python library for Apache Arrow
42
+
43
+ [![pypi](https://img.shields.io/pypi/v/pyarrow.svg)](https://pypi.org/project/pyarrow/) [![conda-forge](https://anaconda.org/conda-forge/pyarrow/badges/version.svg)](https://anaconda.org/conda-forge/pyarrow)
44
+
45
+ This library provides a Python API for functionality provided by the Arrow C++
46
+ libraries, along with tools for Arrow integration and interoperability with
47
+ pandas, NumPy, and other software in the Python ecosystem.
48
+
49
+ ## Installing
50
+
51
+ Across platforms, you can install a recent version of pyarrow with the conda
52
+ package manager:
53
+
54
+ ```shell
55
+ conda install pyarrow -c conda-forge
56
+ ```
57
+
58
+ On Linux, macOS, and Windows, you can also install binary wheels from PyPI with
59
+ pip:
60
+
61
+ ```shell
62
+ pip install pyarrow
63
+ ```
64
+
65
+ If you encounter any issues importing the pip wheels on Windows, you may need
66
+ to install the latest [Visual C++ Redistributable for Visual Studio][3].
67
+
68
+ ## Development
69
+
70
+ See [Python Development][2] in the documentation subproject.
71
+
72
+ ### Building the documentation
73
+
74
+ See [documentation build instructions][1] in the documentation subproject.
75
+
76
+ [1]: https://github.com/apache/arrow/blob/main/docs/source/developers/documentation.rst
77
+ [2]: https://arrow.apache.org/docs/developers/python/index.html
78
+ [3]: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version
player/runtime/python/Lib/site-packages/pyarrow-26.0.0.dist-info/RECORD ADDED
@@ -0,0 +1,762 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ pyarrow-26.0.0.dist-info/DELVEWHEEL,sha256=aHp9GV_OW5Y73BSPaV-o9LCs3FrJ8zdaz6nwyq0jkZU,303
2
+ pyarrow-26.0.0.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
3
+ pyarrow-26.0.0.dist-info/METADATA,sha256=vkravLmwPzpGjxe7D0K0jn4XzdWHQboVdT8oYQwkl_s,3031
4
+ pyarrow-26.0.0.dist-info/RECORD,,
5
+ pyarrow-26.0.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ pyarrow-26.0.0.dist-info/WHEEL,sha256=Uq1KOxYqR1KIiEQX_uIEa9gindNJmPiB5xqtwqneHXk,105
7
+ pyarrow-26.0.0.dist-info/licenses/LICENSE.txt,sha256=KiVeDvWUbv2y4BpIYUYM5KMzNzRmbSVudfnBcxpQl9o,112648
8
+ pyarrow-26.0.0.dist-info/licenses/NOTICE.txt,sha256=LMyh5zDmcfVbgCj6zyJhpvdLVhpNlqLM10O-GcVhkjY,2997
9
+ pyarrow.libs/msvcp140-0fa7eb792d3fbcf2233e4ea47e9144b9.dll,sha256=D6freS0_vPIjPk6kfpFEubEwm6jtXUcxpy__qPT1VtY,557416
10
+ pyarrow.libs/msvcp140_atomic_wait-aa4e4b3f35a38f595be5cf8631717b66.dll,sha256=2OztzFaM2_mCIcgSinNbNIp84FKhxpx1s-8ohBivSDA,29696
11
+ pyarrow/__init__.pxd,sha256=eC5b2a7fm-SmomDxOM02JS_5jrwnBTFc1tzxA7nLrYM,2237
12
+ pyarrow/__init__.py,sha256=ylQc7o6Tu7zunuRTIiUGnMoNbVqd_8G_P8BTXDDQk3o,20166
13
+ pyarrow/_acero.cp312-win_amd64.pyd,sha256=yk2gE6e_QuELdRiAAq5-k3UJNmBm0ec1Y_uG8ZJYSnE,194048
14
+ pyarrow/_acero.pxd,sha256=rjCRAq1oo6OyT0c1ISd3_RYOLmo99UEhk88J5Efn730,1484
15
+ pyarrow/_acero.pyx,sha256=KBQgSDaQ0TRennXWSVmTiHZEaokaQzmWNxd3YMylv_M,23547
16
+ pyarrow/_azurefs.cp312-win_amd64.pyd,sha256=YZWt5R7PDseIVKW9OVp6WQSk4NEJ4qTsSPvcPqMiTP0,91648
17
+ pyarrow/_azurefs.pyx,sha256=Z37aZ4d7tqWGyED69Yc1rWhsXRFe7Rx90xKD5TCOemo,8867
18
+ pyarrow/_compute.cp312-win_amd64.pyd,sha256=7yxPReoOJ55wOSGf4eHUA2yxA7uHLCIIVXzuaOQu9RU,785408
19
+ pyarrow/_compute.pxd,sha256=GQUnCeC9vy9YEnT3gHKBoQMrJvjjmjdCQuIYp6fXXio,2094
20
+ pyarrow/_compute.pyx,sha256=-pKwexXNKlYF2IIJY2zyJKyGOKZMDtnvVPuSyqa94KY,120612
21
+ pyarrow/_compute_docstrings.py,sha256=-8oRQf49FFmTWR1XVmd-_Iwt1WY9QEUVV1ZZc-2Ee2c,9053
22
+ pyarrow/_csv.cp312-win_amd64.pyd,sha256=2Xq2uxrvMvNsJCbvIojxNrs5QM4vyK77si_7wYaiDiU,280064
23
+ pyarrow/_csv.pxd,sha256=rI6eCBX4P1-C6wwhRySHK3vWvjy2dorVeAPaSdROeZQ,1693
24
+ pyarrow/_csv.pyx,sha256=lFnCXsqGLgAkJvEzUNV1UYmkCY5KCb7aqLNWoZ9lPcI,63040
25
+ pyarrow/_cuda.pxd,sha256=S9wJXbxxM8MO-oAgWHkblKMdQr9zuGoNfKGkIKVXw0c,1989
26
+ pyarrow/_cuda.pyx,sha256=sc2m05TddKGQkiq2-xONXTMq9wHR2zQPdbdoq1yr5RQ,36412
27
+ pyarrow/_dataset.cp312-win_amd64.pyd,sha256=HCgQOYsJ9EeRdMTEYX9RS1b8nfE0Q0JpT-z9HBDv8KA,704512
28
+ pyarrow/_dataset.pxd,sha256=yakY7xxTWXmy6DCnXqxp2BH2X5_LzFb1Aj8p4eRJHEM,5127
29
+ pyarrow/_dataset.pyx,sha256=wY62zXKsdQS8bYMMyfDuFoZmHtW9p2kxxVL18yoZX5g,169163
30
+ pyarrow/_dataset_orc.cp312-win_amd64.pyd,sha256=gDX0QSAgiqqJfzczQQ5u7LpEVCaKzLnXd9zfZC_3saM,70144
31
+ pyarrow/_dataset_orc.pyx,sha256=vgB9AQ_DjKvXddUNoksC2HqtlzLNmi-dqTEncd6DrCQ,1550
32
+ pyarrow/_dataset_parquet.cp312-win_amd64.pyd,sha256=7fc6NqfQGhcK6QQmMq-kp-u8veuUGNBklOTweYoMH7w,259072
33
+ pyarrow/_dataset_parquet.pxd,sha256=ayCJyRcMOIVVKgtCYF2SgdGKHrTi-jfCrgJcDJMW4Mo,1615
34
+ pyarrow/_dataset_parquet.pyx,sha256=QtjYt0FH93VDF1CNrJQre0a5NtTNCREETapFIWtsOo8,44155
35
+ pyarrow/_dataset_parquet_encryption.cp312-win_amd64.pyd,sha256=NBAm8Rp96irvHh7H3-h8bxqfh9aqdiQ9mlm_OXs_ArY,93184
36
+ pyarrow/_dataset_parquet_encryption.pyx,sha256=q5FVop8IERFxVChOUnHxplGjdVs9nR2o-S47dUARWEU,7407
37
+ pyarrow/_dlpack.pxi,sha256=ck8iqWTijF0LmMnex76V6NShNOvlS1u6YVfjZjYqf3w,2948
38
+ pyarrow/_feather.cp312-win_amd64.pyd,sha256=2jy2azxL_0hKac3nAvNg7HV2ubwyhlUEbnzb0Op82ho,80896
39
+ pyarrow/_feather.pyx,sha256=uMhjMFDUvcfTVBaPCoydbmcRtbzP7Rz6C3v7T9bahGc,3890
40
+ pyarrow/_flight.cp312-win_amd64.pyd,sha256=d08DTvlhYAJCdlRbilCQDNW88Ae3i96vPm3hAaS5zsM,801280
41
+ pyarrow/_flight.pyx,sha256=884sAkED1XeJmoXoNnrJWlXULOUAIOiAQ03kXeha4-U,118112
42
+ pyarrow/_fs.cp312-win_amd64.pyd,sha256=1RAUGlijNVsRiqx1IgVWzu_-Xq0neqIyJ119NBt6lYw,311296
43
+ pyarrow/_fs.pxd,sha256=GckaT7VHRMB0si-WFHIfpLAcs5XjOLbbD1zSoI3KwdQ,2530
44
+ pyarrow/_fs.pyx,sha256=vLZcI__L76mbfcCWnnlfKS6vcHkLcjFsBG1Goyu39go,54924
45
+ pyarrow/_gcsfs.cp312-win_amd64.pyd,sha256=LsB2M8a6t6TX09AUOmpHmnw_H7RVa7nyBkBpuEpolEA,94720
46
+ pyarrow/_gcsfs.pyx,sha256=AcIEmYc0KRuyjMWFwzNN-iFcanzBvtwv2zVJnZRoM_I,9255
47
+ pyarrow/_generated_version.py,sha256=J0PvnZW4x_zAkPxsjhUQV8l13ez2MNUv3_X8KqJT2Hw,546
48
+ pyarrow/_hdfs.cp312-win_amd64.pyd,sha256=G954Tx8zyQPQVmauir2WnchSQ9ISn84L52lUKKr8Hjk,99840
49
+ pyarrow/_hdfs.pyx,sha256=9m16tdZKE05OO8uXQ1MVOgh-frwP5aoyMPKKH8-jFrw,6249
50
+ pyarrow/_json.cp312-win_amd64.pyd,sha256=AjKa9aaITl89BEkEyEXJwh4q8jT7zs7-O7QTLcMXqwM,103936
51
+ pyarrow/_json.pxd,sha256=jAfiARHEM1qJ2mAuLPa_KrKAbU5YNFLWD5Rhj4P5c1U,1242
52
+ pyarrow/_json.pyx,sha256=cF4lopcDtwT9pejW9tZCVd-Bokhre7QwPje4C8q2i28,13601
53
+ pyarrow/_orc.cp312-win_amd64.pyd,sha256=kjymjnjde0TvBYxUiP4G6pd5_fOkUNw7T0kwe3sVVhM,140288
54
+ pyarrow/_orc.pxd,sha256=G5jSZUTqyt_stuKn0y56L9lyG8oRqf8NzMtzYSD1qaw,5823
55
+ pyarrow/_orc.pyx,sha256=ZfgbW4OQnYshV8nQQCXculGpbmLGsKwzwRwNY59QWq8,16001
56
+ pyarrow/_parquet.cp312-win_amd64.pyd,sha256=y3_qd7KIhuDDreT7mhO8MnnjIwTNaDpoK8pdU8vjWgQ,413696
57
+ pyarrow/_parquet.pxd,sha256=THFS-JBHZqnvrusUr_-R7LEHRWDBgfRXHuPhKj6RvEM,5130
58
+ pyarrow/_parquet.pyx,sha256=GDvtWyqIL3MqUKqhXUVB1EdauGwfiSlJZ7f9H0Zg4H8,86283
59
+ pyarrow/_parquet_encryption.cp312-win_amd64.pyd,sha256=go_3goQZukQNQDEoRQDVUF9-eEH0CM6QzDD3als78sw,248320
60
+ pyarrow/_parquet_encryption.pxd,sha256=p7BkB69KEZDYmz_rMAuKAAg7VCjkClxW9gEACaBBorQ,3080
61
+ pyarrow/_parquet_encryption.pyx,sha256=6BMAKhIkKtgjxtbIG1wdq5twd2-mVDDCkXF1W66bC58,37257
62
+ pyarrow/_pyarrow_cpp_tests.cp312-win_amd64.pyd,sha256=EiH90WPLAnRlYxqWdwn4eGq0k4PRafKe2vAAMcdJg-M,75776
63
+ pyarrow/_pyarrow_cpp_tests.pxd,sha256=L_cgXkO1M54NUhRpzHPqLA3-h5qkqTjcxt_OfSlF01I,1232
64
+ pyarrow/_pyarrow_cpp_tests.pyx,sha256=cXM3tGxJyLqr-U2oqTKzdWVEsr7d7FLbrSzjw6Aagl0,1815
65
+ pyarrow/_s3fs.cp312-win_amd64.pyd,sha256=rcTnM4zzVGGvY_iX1274Cjjob4g_KADm6v2I0AVTX18,143360
66
+ pyarrow/_s3fs.pyx,sha256=1_3FVPb1haWo43KGkt7PNmqJFouunsFxiWkjmOhcCM8,21075
67
+ pyarrow/_substrait.cp312-win_amd64.pyd,sha256=8WdHksE7uCYlTBaToegCksiTOfur2xrh00FOxHnH7NY,142336
68
+ pyarrow/_substrait.pyx,sha256=tOdpG8sK4oKgct6ymgQeu9bj_DD2Gb3vFRXrvSg_qOs,16147
69
+ pyarrow/acero.py,sha256=IwmooCTjwMzD5nGHJeKwWsZCwjOWcFfVd1Cdm-POVZE,16206
70
+ pyarrow/array.pxi,sha256=cl4XzD5ikxtysxxQBMEaL3Taebx5sObl90MT6FcyGTQ,184126
71
+ pyarrow/arrow.dll,sha256=BHu_MyoaXF8v-l-m2Mnuck3gJLprMXpQ0OAaMZkJPpA,18696704
72
+ pyarrow/arrow.lib,sha256=VOz6qeV1nDEnhJei0bzZm2ac0nZgcvqoik3n_t2tM9k,4207152
73
+ pyarrow/arrow_acero.dll,sha256=H1JeEo6EvfsoJ2YUmDQBw1xkD95v6l4R9zfvwJdbDo4,1256448
74
+ pyarrow/arrow_acero.lib,sha256=WUsXgpCqFUWgKDE_BTYcP5FFeAMtPsuAGTIcVlespRw,289352
75
+ pyarrow/arrow_compute.dll,sha256=Fo2CJ5iUc5jk172UHMY6_gUUpGiQOle7baKi1SRnJbs,10118656
76
+ pyarrow/arrow_compute.lib,sha256=lpcx4uuMkYyP46AURhTM2DFexiNnOfeLGCKE6fOY7a4,183546
77
+ pyarrow/arrow_dataset.dll,sha256=drlDe_Oi_JJfT6d0cYBDRSGxFRkMiuC3Ba5OrSZcMK8,1332736
78
+ pyarrow/arrow_dataset.lib,sha256=hgYESLIXmfn-9NlFjg3go8Y2sjC3KSZ4D-8yXRvf7Fs,413512
79
+ pyarrow/arrow_flight.dll,sha256=XKnoNcZ8V9G-kZvgQXlNMcOr8tzMR2P8PmyVu6E6e-E,14660096
80
+ pyarrow/arrow_flight.lib,sha256=wTELgZjoaoklONDuG7p_DaBfVJpWtuDpoPUpC1_ltGU,542702
81
+ pyarrow/arrow_python.dll,sha256=zFFHfPsfIJeMU4XOE-mOYOJNlvLMXs__gt2gcu81tac,1212928
82
+ pyarrow/arrow_python.lib,sha256=2Hshv5jEbK13iLTr39iXYa_iY6vodiyFZ-DoZJgUzkM,169946
83
+ pyarrow/arrow_python_flight.dll,sha256=k3mDR0D-Ih0jnd7eI4c17i7cBc5QO0LjVIYBBq_hcwM,65024
84
+ pyarrow/arrow_python_flight.lib,sha256=VGOXXWtWfK-C8IE8d61XO6-mvoxl_Q3k9WLQ2yfw-Ek,58656
85
+ pyarrow/arrow_python_parquet_encryption.dll,sha256=PBwbaV-uSOCSygkij2WXB_IMWXVOJeC-esiot1GZCTQ,32256
86
+ pyarrow/arrow_python_parquet_encryption.lib,sha256=MUoZcJE9tKIhQfTprna1pOlv84Tvs_DD2VEt6iERD-c,20960
87
+ pyarrow/arrow_s3.dll,sha256=QUuMT06qdRnkn4wyFfR4qg0kVR34BCp1mV2wW1cWLUY,3927552
88
+ pyarrow/arrow_s3.lib,sha256=eNswsebu1BQJQXpoFaFxBxizWWGDMgBQDZObO3WcbTU,49432
89
+ pyarrow/arrow_substrait.dll,sha256=nhzBFv9SUrFWYs6DMmKpj0g17CQU9vckJDaZelehAnE,2772480
90
+ pyarrow/arrow_substrait.lib,sha256=wTMKC26A1iN0fZ60hIZk4d4BqTIYq9Aj5pNBGK2w4-M,111500
91
+ pyarrow/benchmark.pxi,sha256=mrrnfpGQcc4Dxw7EOo7vqzxW8NBcQ3DmPIAvp76U4aM,889
92
+ pyarrow/benchmark.py,sha256=i-yvjV5wmnxC-IMo1xAjys6mmM2ea1yyys6m7FzJt6g,877
93
+ pyarrow/builder.pxi,sha256=ZXVjiDsbO_Vw_25kUN43AuE0xj7Chw2Ypkrv45eNj2Y,4784
94
+ pyarrow/cffi.py,sha256=xRVBRPsxbd8yd5jE4dk4r_oCUonAei8tLBkUbKP-cCk,2477
95
+ pyarrow/compat.pxi,sha256=GGSfRvXAMyzcIu6jr6Gt_a7-a0kied3Sn9BwMY8quGY,1991
96
+ pyarrow/compute.py,sha256=8X_C1ID59gKqyo_KG6lruTCjsUpDA5S1uQHQuQA2Bro,25755
97
+ pyarrow/config.pxi,sha256=WkrpJG1VXeUw28ltQpBnhwxJx9hf-HU8BlR0loZ8eSc,4635
98
+ pyarrow/conftest.py,sha256=KAQFmb-ZT6bP57mU-FOdvKmelsu1kqsJ-JYc0HWvIIo,10262
99
+ pyarrow/csv.py,sha256=YdN28bUXVQVe03NbWzJxT6P_mf43pv0pbv463MJQ-Wc,996
100
+ pyarrow/cuda.py,sha256=NJdOLaIiUFOnTIeRCaxNttBJDqwe-hbSdww5ls5xSJM,1112
101
+ pyarrow/dataset.py,sha256=z4eY68L6CFM7E0Jc94j9k6Ly64XLpdILEBCcPQucFFs,41567
102
+ pyarrow/device.pxi,sha256=nwhrqDer0H4eKTZd6n6LqR2hR5orwhtXMH4-eCIw4HE,5730
103
+ pyarrow/error.pxi,sha256=Bl9lR06XhW7mbCz99INvc4Hrc14jlXsGbE4foHPmpqU,9183
104
+ pyarrow/feather.py,sha256=HA0i3Tk_rSf8Zz8gevs0p56Bz2REbJ6zVl3CVkMLQrQ,11370
105
+ pyarrow/flight.py,sha256=MLoZiSHzbRBjS7CkR_Na-D8LIBBUR9sOQyx8fDr41zg,2246
106
+ pyarrow/fs.py,sha256=VpU4AWoquuyjWBjUlOViUwTyeYaK1X1wZpSR8FCksw4,15400
107
+ pyarrow/gandiva.pyx,sha256=j8jbzQOyv2Mf30UD0wb0GrrBnY6xRicvYHQOLZB5f3E,25207
108
+ pyarrow/include/arrow/acero/accumulation_queue.h,sha256=GGQKzB7AAWvOCn4bpcTZYhTcjRSZbQ5jxN5Zx_bEtXU,6147
109
+ pyarrow/include/arrow/acero/aggregate_node.h,sha256=rVzdpk8AthruUdmAffAOUNwbCk-TkIp5ccTP1OheTu8,2259
110
+ pyarrow/include/arrow/acero/api.h,sha256=ja6ScTS8T_skQGjBaYvgWPX1MBq1brRlYfghWIBsTTk,1183
111
+ pyarrow/include/arrow/acero/asof_join_node.h,sha256=hxPcEiCNC1Ssch8dWu3OmpAmOCMCjWd3wp8VGd7qsoc,1531
112
+ pyarrow/include/arrow/acero/backpressure_handler.h,sha256=6GtudbAtYBHKePmMbr6Lns9KPnj3LbDRhljPaijaG9o,2459
113
+ pyarrow/include/arrow/acero/benchmark_util.h,sha256=UE4Xchd9Euwsj5IWtNGYPRzUk4__ld_46yQdaKy8jFw,1991
114
+ pyarrow/include/arrow/acero/bloom_filter.h,sha256=AI0q2YmV9rzvRSGVbCQ5P5ZGMBA-XSrRGeTFCaKd840,12301
115
+ pyarrow/include/arrow/acero/exec_plan.h,sha256=icuTf4Vj8rbQvs5XcymSGiEkOsDkvoey_8Zs_HQG--Y,36728
116
+ pyarrow/include/arrow/acero/hash_join.h,sha256=1IF3MC8L9U3xtjCS2tCp5ZHANY8hYUcAcKBA02CiEdc,3097
117
+ pyarrow/include/arrow/acero/hash_join_dict.h,sha256=yO6tUuaMiNigMvIcecnaaCm1m0vO4RnF3AW3INGEvko,15678
118
+ pyarrow/include/arrow/acero/hash_join_node.h,sha256=dxmanwGxru6Ilk4dGouZ4EZy5G8MYpiR3P_Xi1rJorg,4481
119
+ pyarrow/include/arrow/acero/map_node.h,sha256=g7SnGKKpDrDxJAeLVRE2dYiu1ASWWfKAsXOovFURDRc,2709
120
+ pyarrow/include/arrow/acero/options.h,sha256=X17Ar_TAsoNclSZ1P0ZHz18yclauzfd5TYJy23JYuP8,38703
121
+ pyarrow/include/arrow/acero/order_by_impl.h,sha256=Cel0AcoqvQxRHbVFU0nOoqN_omfw_BsD5sQVlo7m7fQ,1747
122
+ pyarrow/include/arrow/acero/partition_util.h,sha256=P11DsqUN7wMhIyhWD8JTRpoiqpGJyToeiuo6EpueZRA,7623
123
+ pyarrow/include/arrow/acero/query_context.h,sha256=AK7weKm9V7oC5VMvMoAfD6QbYUH3Gwc4QYw5pext4PA,6363
124
+ pyarrow/include/arrow/acero/schema_util.h,sha256=krGNXK-XUVhlYvAsLARhGaT5_P3b6jaWt9DF3hiwtMk,8187
125
+ pyarrow/include/arrow/acero/task_util.h,sha256=PCgJOqWIHvFm4xEw0KhSb49syeIGlyC3npyFQGfzF7E,3808
126
+ pyarrow/include/arrow/acero/test_nodes.h,sha256=wjrgNEl6tIG207vxFVqIO_HbZ5gmwsViKS4az88BhuM,2963
127
+ pyarrow/include/arrow/acero/time_series_util.h,sha256=zRkyQY6_JoXV3715mHGxs2c9a9BM8rDTMbBLF6qcCGc,1241
128
+ pyarrow/include/arrow/acero/tpch_node.h,sha256=8RTrew_dsrCb5P0ltZ6CRInrjb9R8GqfH_xlI5e83Vc,2736
129
+ pyarrow/include/arrow/acero/type_fwd.h,sha256=ywhZdjTAngHGlVcg9SquUKtC-8pZbZaGPQ-vfnbTaXM,1139
130
+ pyarrow/include/arrow/acero/util.h,sha256=ZF5uRHwkNWg96zRvue9McAEoNJp_Kp7SMUAeX4oGKPI,6305
131
+ pyarrow/include/arrow/acero/visibility.h,sha256=AkfHK0MhXhWEHUuNn2E7LkfTSLVQ3OsQWEzZL67tB-g,1666
132
+ pyarrow/include/arrow/adapters/orc/adapter.h,sha256=B7QodNYkYUns8IZhLsygyLlcIDOm47HNRyqAqUf5Qac,11354
133
+ pyarrow/include/arrow/adapters/orc/options.h,sha256=vMxdAhBsxRoLUhi1KduGh0B_Hy9l-JmNZI4QQKNJ840,3816
134
+ pyarrow/include/arrow/adapters/tensorflow/convert.h,sha256=PBuoNq4ASqWeVqi9cjrTTBc_MOn_FrFUH2uosRg8PIk,3593
135
+ pyarrow/include/arrow/api.h,sha256=HajNiML4B--LKCoUN1SX4V_J8nwoFtf7rWcI4YndkM8,2538
136
+ pyarrow/include/arrow/array.h,sha256=cAYOBSZOk_RffGZsl994n2Z1utf0U6Xr25K_UbQ24Y4,2030
137
+ pyarrow/include/arrow/array/array_base.h,sha256=qjhjT7mZhY7UJhcLzyrNRbtn33MAiqEhtgo0UTUI_yU,13414
138
+ pyarrow/include/arrow/array/array_binary.h,sha256=cFO7LYPTXKxCBHxylwQJx35PSGzxGyMr8my6fvX8HrI,11568
139
+ pyarrow/include/arrow/array/array_decimal.h,sha256=1pr51z_v1LeUPynfDexkpFQfD5MfcONS9J99DJRPpQw,3209
140
+ pyarrow/include/arrow/array/array_dict.h,sha256=wrOeFgvhoBpeIB56fDE15Zs7w_y1rsTZQVpaSQ84ASo,7931
141
+ pyarrow/include/arrow/array/array_nested.h,sha256=RK10f_reOm9ekHVjuGNLKTDoZ0HyokeTJPHvbRgYLvU,39033
142
+ pyarrow/include/arrow/array/array_primitive.h,sha256=D_ibt7CdY0OO1qVCAgqaURGJuNdikmIKFuzx8fbrvE8,9163
143
+ pyarrow/include/arrow/array/array_run_end.h,sha256=9ZsbKbROro2Cj3e-QXJyjoDscjbDa15A3eJKXVxT_VY,5234
144
+ pyarrow/include/arrow/array/builder_adaptive.h,sha256=z6xhvrZdME7Uc3Yw092xhiSOnA2RGq_vJQXCRtNOq_0,7076
145
+ pyarrow/include/arrow/array/builder_base.h,sha256=y0JtT67nVQxzbYDl6NqeDcnIuFdylpvN-iEpDV7s-yc,13707
146
+ pyarrow/include/arrow/array/builder_binary.h,sha256=GMk8lBFIANe6tQYWCoTho83mPBsmmFBlvNcVef_clgo,35238
147
+ pyarrow/include/arrow/array/builder_decimal.h,sha256=6NHMQaRvqtCSuYoeyVFkpWW1DMaWKkM3cBHePossbJQ,5215
148
+ pyarrow/include/arrow/array/builder_dict.h,sha256=YXXH3hmUj2-f-AnVozY-XEs4Om0ubMXQDWCd9ugs90Q,31361
149
+ pyarrow/include/arrow/array/builder_nested.h,sha256=0v-WCK85fezkRa1v9bNZrX8Q1_sPLwzrCdjCcgFzLQ8,32067
150
+ pyarrow/include/arrow/array/builder_primitive.h,sha256=AeJkE9RjbzMq69BtJsaOr4aBDJ_7j0UmfhgxUcqeu0Q,26720
151
+ pyarrow/include/arrow/array/builder_run_end.h,sha256=XLX6GrEjnYcVul_Tp_c3NGProE0OpogU-xeI55nhtlk,11719
152
+ pyarrow/include/arrow/array/builder_time.h,sha256=SFxKuA2O_XjoDS6RI_M0GVjinoOi0-Ze5dhGeS_hg7w,2567
153
+ pyarrow/include/arrow/array/builder_union.h,sha256=QXRVqMhp3oHs-qU6xl0y1-KjrYq2LdG2XbbzGN3tQMM,10398
154
+ pyarrow/include/arrow/array/concatenate.h,sha256=JhkBRuB5TM6KbU4NQ_flPeVHDTR5Kg0C77XBz3uB9qM,2112
155
+ pyarrow/include/arrow/array/data.h,sha256=HHyKZFc9V4YrmUDzNGwRJTYjAFqg2lfTL167do-t_ak,31301
156
+ pyarrow/include/arrow/array/diff.h,sha256=vGHW50FpxoMfYMVRvzHcxx3tw-02letyoXkR5yoxgr4,3420
157
+ pyarrow/include/arrow/array/statistics.h,sha256=GhX8wO1aCqVzj9ZctFp6b7CIiDc9BC7euR_4f7JtOBo,7089
158
+ pyarrow/include/arrow/array/util.h,sha256=T48nkLcn4eUkvFWe40eIIBG4ZiB221snra0gACpEIjo,3748
159
+ pyarrow/include/arrow/array/validate.h,sha256=9O3KehNl2kWHQwLz6A7izxqW2McmpVcmOE2nz1glSBY,1766
160
+ pyarrow/include/arrow/buffer.h,sha256=r25ta9dtAsUw8OIQ8NEmcCSTpKSoKEW8YOwVkW9e5CE,25992
161
+ pyarrow/include/arrow/buffer_builder.h,sha256=9wlf5ZES7T-zGgwQ5j3EwazFeldVRNfRACzM51cKY04,17956
162
+ pyarrow/include/arrow/builder.h,sha256=MNcxVdcYID5LCq_U59nwuObUVshQiEB3_5ij65s8JVI,1579
163
+ pyarrow/include/arrow/c/abi.h,sha256=WzE98mONnJJzA9pTj7g9rrdjMNBOznmRf1arZJYuHHw,20778
164
+ pyarrow/include/arrow/c/bridge.h,sha256=F0wa9Z9e3-gMdiwvDftaxYT2ao_W3gLGUT623x8RT8E,22278
165
+ pyarrow/include/arrow/c/dlpack.h,sha256=cm-uO4ABnESRLNG3J3nCIMF1prRVLBLDGBBugLBjY2c,5123
166
+ pyarrow/include/arrow/c/dlpack_abi.h,sha256=OA20KWWU77sFsFsUndrljyt92Zg8UF468D86g6hFsys,23976
167
+ pyarrow/include/arrow/c/helpers.h,sha256=K87ufXnopM9P9KLlI2r70-E35F-RnaVXV_bzZWtT0-s,6457
168
+ pyarrow/include/arrow/chunk_resolver.h,sha256=p9qf4w6LSlPMFQkaGyedFvhT2h66EbG7HlRuSsblCCk,13121
169
+ pyarrow/include/arrow/chunked_array.h,sha256=MpPLFa-H17BWdF2Xzy7weipc1sv1aRGg9q7d7wqxMgA,11542
170
+ pyarrow/include/arrow/compare.h,sha256=Bq4TRlEyIkQLL_0pM8ujuQbSNwaOv7C3YEGIO2eDx7I,9910
171
+ pyarrow/include/arrow/compute/api.h,sha256=RjDyauneE0xU6zlpj1TFfFJHTCOwNLZVCCccb3Gb6wk,2193
172
+ pyarrow/include/arrow/compute/api_aggregate.h,sha256=Kj1d3a2h53QFIWZG4fhj-5RdvXKIsP-b0VhKEsZfDFg,22541
173
+ pyarrow/include/arrow/compute/api_scalar.h,sha256=DZFRggSZ7Z3BTxm9JBTGvuqsORGJXIo1Lz2x6DZBDl8,74241
174
+ pyarrow/include/arrow/compute/api_vector.h,sha256=JLDrpqOwambSljfk4OKTMknG1jeVJXST2-E5PXVp7Ro,40120
175
+ pyarrow/include/arrow/compute/cast.h,sha256=rA4ILHgm0DcP3T2tqt51KyFax2nTZT2dRePVLVquJIc,4379
176
+ pyarrow/include/arrow/compute/exec.h,sha256=GzwemTPvEjJPGjW9GRpvMzUn8jhbWNs7FngwSSKPagI,18464
177
+ pyarrow/include/arrow/compute/expression.h,sha256=a4PE1-4ltZTINj9TVH-88zfY9xYcLHQnfPidRoFjIoI,11459
178
+ pyarrow/include/arrow/compute/function.h,sha256=gHzW6jgpOd5bpg5T_ZNqUM1Dr8jNYU49Q195UwQA--M,16829
179
+ pyarrow/include/arrow/compute/function_options.h,sha256=FnCqSjeZG13AUwDx65pOj8i3ZbHPhzL4hcpyRgpB9Gw,3169
180
+ pyarrow/include/arrow/compute/initialize.h,sha256=hoUZTN5eYePB-RDPK5icbvzI7BV9EoGyb2oREuknidA,1225
181
+ pyarrow/include/arrow/compute/kernel.h,sha256=l_MbCN6daOfJU2VFoHVJEuxlTzSeBe5p355bkaYqr2M,33381
182
+ pyarrow/include/arrow/compute/ordering.h,sha256=TYO3cnVBnxdKWg3oXpIh4H3MOPKq9lIcTAROmRabwvM,4889
183
+ pyarrow/include/arrow/compute/registry.h,sha256=kZ4rf8OIM0F-0wlfO66KMIDctZpDdt9asfCDt-6tRcg,4963
184
+ pyarrow/include/arrow/compute/row/grouper.h,sha256=K5eJwGWzDsAOlQHNmOhq81IG8R4ZWo68hhkU3i7Xh8A,7718
185
+ pyarrow/include/arrow/compute/type_fwd.h,sha256=uvRR4uzdCp6KMhKrtK6SSlnIeuHakRUt1dgXC8ayzyY,1614
186
+ pyarrow/include/arrow/compute/util.h,sha256=oJejQXgrPQINIaqvwz5HxLUFMLMkLVtJKMSvr-eCwe0,9597
187
+ pyarrow/include/arrow/compute/visibility.h,sha256=uikdi2lpZVLpcW1vkTFSEma9K-Ej-9ixRRlYwMWuo_Q,1646
188
+ pyarrow/include/arrow/config.h,sha256=JtiwvaSbO_srcgwmq1Cd5M1d2r0YxP3u3ty23hurR30,4081
189
+ pyarrow/include/arrow/csv/api.h,sha256=mrySGIM81ziJhlG3AutB28biUs42PNvpERB63vFfXQM,929
190
+ pyarrow/include/arrow/csv/chunker.h,sha256=KYhQi-hLLmFIhC3BRfZRbIOpZMsTbnWHS08jy4tcCl8,1207
191
+ pyarrow/include/arrow/csv/column_builder.h,sha256=GFZx7mP6bqiNcSVMwSnrkQM1LtgW44aNuSrSpcPRsCI,2967
192
+ pyarrow/include/arrow/csv/column_decoder.h,sha256=1Mfwma0yKt5cYVQ-jb4kaHk6VzrnyrI5Pg397R-Mm3E,2422
193
+ pyarrow/include/arrow/csv/converter.h,sha256=Zp_gl4QJ2J9JI-0qIInbUED1_O6G-ceyyPQ-bVnTfOE,3049
194
+ pyarrow/include/arrow/csv/invalid_row.h,sha256=QI1O1M00RItEnFeMYTvJCUOQ88n-GyO0IantTDu73T4,1944
195
+ pyarrow/include/arrow/csv/options.h,sha256=eW8E74o9h-LQV1v0oBkGNgI1kyf74ZRGJ90kKyz7uG4,8837
196
+ pyarrow/include/arrow/csv/parser.h,sha256=zC4vjP1Ggg6vARyx73tXTmQFarsKR8X_ZbJuOV6WTQo,9793
197
+ pyarrow/include/arrow/csv/reader.h,sha256=njP5lhKW0XptbU_Zz3LakWZdvrg7Eko2N9i0vKEKBcg,4718
198
+ pyarrow/include/arrow/csv/test_common.h,sha256=dw0MWN5occOCyrIoIOzppsWMY83Br2FMgTDGcWC-EFk,2027
199
+ pyarrow/include/arrow/csv/type_fwd.h,sha256=udWl775X1Yx5QBgfmXluDDmgI2NStrjmur91H8FNvg8,1012
200
+ pyarrow/include/arrow/csv/writer.h,sha256=9cBNYlJRIdqJ6RlWhjpbVq0pBPVwgIdkmc4up9Cah3s,3639
201
+ pyarrow/include/arrow/dataset/api.h,sha256=zUvEjz-PuLXDdqE_WUVIWAwHAmz77XwqI8eDBqpHAxQ,1361
202
+ pyarrow/include/arrow/dataset/dataset.h,sha256=D6fwrRvAofum40w65XwDqaLuChueQqI5ZPE_Sdq3Mo8,20818
203
+ pyarrow/include/arrow/dataset/dataset_writer.h,sha256=eq88v7MOtVt44fg54_1bo1vzdz8v4RPJGuLVY_ai1UU,4692
204
+ pyarrow/include/arrow/dataset/discovery.h,sha256=W1SwsuLp-H9IzogC7Ew4_DbatXPH0AERyY0uzDVbtaY,11511
205
+ pyarrow/include/arrow/dataset/file_base.h,sha256=TXB1XMATFgM0LiFWeUYjHu8Lpg6Q6sf5Mygd0B0w7lA,20932
206
+ pyarrow/include/arrow/dataset/file_csv.h,sha256=MCt6eRH9CKrfmMPmZUiQcJePXAT8ynI4qeLcnhV6pHg,5160
207
+ pyarrow/include/arrow/dataset/file_ipc.h,sha256=FaCnXdg2YihUDxcdBoCvSmA-MTk-VKhD-rN5T2WqEkU,4206
208
+ pyarrow/include/arrow/dataset/file_json.h,sha256=JH-9JGSg351WTLG6ET6YCQ30w-Kfcd1Uwa09nAQX0LA,3621
209
+ pyarrow/include/arrow/dataset/file_orc.h,sha256=i5In5ilw82h0wil4IbSJpFfSU239_6bFsZZAx3e4vQI,2527
210
+ pyarrow/include/arrow/dataset/file_parquet.h,sha256=5Ab3rC2NBUF7lK72HkI9FhbSYPRMZD2vfLVVx6BqLBc,17345
211
+ pyarrow/include/arrow/dataset/parquet_encryption_config.h,sha256=8wPZEYEs9-95TaL8hwZcsAmmzldvg20lqBFLT4YMwNA,3500
212
+ pyarrow/include/arrow/dataset/partition.h,sha256=P9uWiM2sCk8LWEl3vfzxBwDZHdKGtjehzALCctBq3As,17247
213
+ pyarrow/include/arrow/dataset/plan.h,sha256=e3HxDV55B9606UzmQfJOchsZYvxNjjSRW1sSeqRdA38,1214
214
+ pyarrow/include/arrow/dataset/projector.h,sha256=Gl7qon2MGuQdAXFC_VL7lDmekOoaIYpkDbqvhHaOmtg,1167
215
+ pyarrow/include/arrow/dataset/scanner.h,sha256=eXrcWpUZqOquKSNCjKy_9ptMl8RZnI5MbQnLencDoUY,26823
216
+ pyarrow/include/arrow/dataset/type_fwd.h,sha256=3E2qO5bZAg-AAtFGZGGpWP_jidXMKyxgsZL7KhlquvE,3283
217
+ pyarrow/include/arrow/dataset/visibility.h,sha256=hNHTDNAve7L5iGW8cE-ZD8_FwF50tSOkPIXHgnQmWUA,1636
218
+ pyarrow/include/arrow/datum.h,sha256=uu7eFGTBQ4-LoRPcsnOg42M_Ed_2CycfVQMjRC4tmWE,12357
219
+ pyarrow/include/arrow/device.h,sha256=M0wyVZkkbM7G2h4pISWygSJfxUStvsNljOjmQ2ZHIGg,15726
220
+ pyarrow/include/arrow/device_allocation_type_set.h,sha256=m3zFNvCKW61HQhaH65_97m-y73Y0mQTOTHTSJFMSpT0,3403
221
+ pyarrow/include/arrow/engine/api.h,sha256=fgaw48YHO1VT7cqs5htHz--cpk4Zh9nAsn23ySIMx4I,908
222
+ pyarrow/include/arrow/engine/substrait/api.h,sha256=cet1Nuy9YHB_TC87wqBbljw95HcuOABH9cBumBtrhLY,1105
223
+ pyarrow/include/arrow/engine/substrait/extension_set.h,sha256=5RoToxSsrJ2LChuYG1hxMe9DX8DDnytDxgcgii9U3Zo,22033
224
+ pyarrow/include/arrow/engine/substrait/extension_types.h,sha256=XuG6iwVFe8MtMGSOyAgL1HnPrHOS3O6Nvcf79Ew4zr8,3165
225
+ pyarrow/include/arrow/engine/substrait/options.h,sha256=pYixPsZpfJoc_2DK6ludyaAjZtGsWIh8D4VQ-UEnREY,5955
226
+ pyarrow/include/arrow/engine/substrait/relation.h,sha256=YwP9-cQSQXp6YbHN5tuO-KgiL1Pu1GRhUAAlV_9V2mo,2456
227
+ pyarrow/include/arrow/engine/substrait/serde.h,sha256=CDi5lFowebB2mlxr8JvfpgNFV2x1fiYiXtrEf5O4QSo,16859
228
+ pyarrow/include/arrow/engine/substrait/test_plan_builder.h,sha256=rb4YPCPcFnzYKBX3q0Ar-ceTdtGwFpkOqCK3IsJn4e4,3079
229
+ pyarrow/include/arrow/engine/substrait/test_util.h,sha256=TGz1HkUVePC7x29UW1sqc2mP1F49n4kGVdTeLJab3gQ,1562
230
+ pyarrow/include/arrow/engine/substrait/type_fwd.h,sha256=aUfGCwouyEBJget9lsYmu6H_Je2AmKG_w0R7n18breI,1060
231
+ pyarrow/include/arrow/engine/substrait/util.h,sha256=CacFeBx3Zb_tuS4lL1Oo6Mu2xbH9VpMxEWavuw2HQh8,3653
232
+ pyarrow/include/arrow/engine/substrait/visibility.h,sha256=SjFehPWLcF8wifrR5gii-C1_yUr95k43uYONab6nYbs,1792
233
+ pyarrow/include/arrow/extension/bool8.h,sha256=kpVXrN0XbSZkz5ttuCdrQ9y7QZuZoSc1OqcaUOoTv90,2205
234
+ pyarrow/include/arrow/extension/fixed_shape_tensor.h,sha256=yFa68ug1aNMO3bFZN6oUZ-NAzfonBUZwBd3pv400D6Q,5818
235
+ pyarrow/include/arrow/extension/json.h,sha256=ChlBiqufVFsuHeYdS59TMitoh0aaIC6nVZf8nbxqJRc,2083
236
+ pyarrow/include/arrow/extension/opaque.h,sha256=HoNjMGE8dsyen_D1mKIOlyNeHfBXVFkBle9CrK0FxLk,2991
237
+ pyarrow/include/arrow/extension/parquet_variant.h,sha256=cswVMY-upY_ZYIVwSDRwiHZfg5FEyAvO-VUQzLP7QT4,2970
238
+ pyarrow/include/arrow/extension/uuid.h,sha256=2EKEGYHwP7I26ktAA27rP_7XaBmUxf5g1sFMONf9OTs,2427
239
+ pyarrow/include/arrow/extension/variable_shape_tensor.h,sha256=nVl9Mx1aIeFvXIrGjv7uS8H-iyTGksGpDEsBUh8lyFk,4605
240
+ pyarrow/include/arrow/extension_type.h,sha256=5T4teNlY7ikSNCVyZ5DUpLiX5AwD0oAUlv5M6ivWv6I,6807
241
+ pyarrow/include/arrow/filesystem/api.h,sha256=wYLtR7Phx5pfHm8SKXnJUqYS-e4ffUAuKsWE8TGvs38,1417
242
+ pyarrow/include/arrow/filesystem/azurefs.h,sha256=-7awL58usZZxq4S9a4wfWRgdJ6wV15231qk0CKJ8pmM,15968
243
+ pyarrow/include/arrow/filesystem/filesystem.h,sha256=Z17FPbK6eVSs1BG9G8dbj-j7AqjPdGvaKOdnEEQDoHg,34353
244
+ pyarrow/include/arrow/filesystem/filesystem_library.h,sha256=uvrLgzca8fc7tANaxCwckIKREzlSY2R5uWGEJZbS0sI,1806
245
+ pyarrow/include/arrow/filesystem/gcsfs.h,sha256=dX2z7NpQxXhi_Yal302jFz5jX63hadi2-rjNZOZCDNs,10614
246
+ pyarrow/include/arrow/filesystem/hdfs.h,sha256=az1EKxKYB6Vf1JiwSRhYVc87YAlqED7T09_aLUJ4Kkg,4547
247
+ pyarrow/include/arrow/filesystem/localfs.h,sha256=xRwJh4SNFE5p5ZEHolvOH5YrCZoUWXfk68YpR3gr4Wg,5104
248
+ pyarrow/include/arrow/filesystem/mockfs.h,sha256=mPQsmYNbOHYIpWeqnJGsUWROxqagJyxjYaDgHH5NLc0,4902
249
+ pyarrow/include/arrow/filesystem/path_util.h,sha256=r7xAj9YOEnkxmgACJTFHjjp21brC2cg5oF4NDZeChy0,5876
250
+ pyarrow/include/arrow/filesystem/s3_test_util.h,sha256=oxGb4JDF2b0oP2eug9vPD6YjO1ceFvgDxxsbDpch_Nw,3164
251
+ pyarrow/include/arrow/filesystem/s3_visibility.h,sha256=PuuAKdvMov_iNUxEcTL-68OOitwHExRdZoKEno-4iII,1596
252
+ pyarrow/include/arrow/filesystem/s3fs.h,sha256=5CT2lRssXfv1Q51wnVYLePdjua6s1H9Z7LSZ_NJH9QQ,19879
253
+ pyarrow/include/arrow/filesystem/test_util.h,sha256=d9uoQLLFXh-jk_m0to7p3X-FZhHcpKu8FQXJjbcPl9g,12002
254
+ pyarrow/include/arrow/filesystem/type_fwd.h,sha256=Wa3zB9amkp6XJARokB7oVDFUadSK6hdsc9wRlswnqms,1515
255
+ pyarrow/include/arrow/flight/api.h,sha256=qsYeE0gW9Ja7_AiuRPcSjPG9Za8LhvnIx8xNEgGXJw0,1287
256
+ pyarrow/include/arrow/flight/client.h,sha256=duqzV7nBOV52i7oH4u4kf-VfUhSl5EVcJ3IiXOJBa8w,18370
257
+ pyarrow/include/arrow/flight/client_auth.h,sha256=S8w0hGHthx5trhh4Hy2IIUZhlMv-5hadI9vZr61caDw,2278
258
+ pyarrow/include/arrow/flight/client_cookie_middleware.h,sha256=1fsK1K4nsZya2Lcu7ObLFmy8MySWAndeOLqbtELH33w,1237
259
+ pyarrow/include/arrow/flight/client_middleware.h,sha256=qtGBiIz-xPDGTXqywbFkpnDHI1zMbaGzg5nAFPt3axA,3026
260
+ pyarrow/include/arrow/flight/client_tracing_middleware.h,sha256=htiyzC8DGhxUxP4mT2BtC2Z7YbyKIEOPMshLh98W1MA,1251
261
+ pyarrow/include/arrow/flight/middleware.h,sha256=D-QPVX66oYEtTqlhvkoKwwXJOkl46CWQ78QHMvNSEio,2329
262
+ pyarrow/include/arrow/flight/otel_logging.h,sha256=ON05jVmWvTYfUna9lNklZFvJsA93WZrndPLVWzokXXc,1172
263
+ pyarrow/include/arrow/flight/platform.h,sha256=SIcPkVbP-yrFvJaXw0H3FuVnFXZgbDH3KQRNqtvDB_w,1240
264
+ pyarrow/include/arrow/flight/server.h,sha256=Uid3mgf9cpE6BoNHq8V2CtbvKvnGFh5DI6nz_0I1o8I,13512
265
+ pyarrow/include/arrow/flight/server_auth.h,sha256=U6_gSIgPoMxXjKXnC-InA_nIgtOqQ3fab995KhuOwso,4564
266
+ pyarrow/include/arrow/flight/server_middleware.h,sha256=d4Lpsdn7Ge6pump7w8lGixjCM4PXPqUJB5SRgWlwGcs,3237
267
+ pyarrow/include/arrow/flight/server_tracing_middleware.h,sha256=Zt7GRkPeXSggTC1OKZmFVf3RPDWZh_hl8sNCUcKqCeU,2254
268
+ pyarrow/include/arrow/flight/test_auth_handlers.h,sha256=OMFj1T511ROS5To6lDdf77UjULqQwGiJD7MIjgPZNfk,3404
269
+ pyarrow/include/arrow/flight/test_definitions.h,sha256=Z8t86-GOHwUAljFNS9n9F_F_sgVCaQlVCzmepSSZO3g,13428
270
+ pyarrow/include/arrow/flight/test_flight_server.h,sha256=_LRrmCZ7-HqN8jgW2FtSNaAmUVvrhWNJDk84744mUd0,4022
271
+ pyarrow/include/arrow/flight/test_util.h,sha256=4LXd8AGeoYvy7YmnuoE3qLZeLQfa9SyuUnVqO70XT3c,6856
272
+ pyarrow/include/arrow/flight/transport.h,sha256=9wQRDQwLddR3YR_nVbDxYGbdwXnvY-mOBpCI8_gvDTI,12499
273
+ pyarrow/include/arrow/flight/transport_server.h,sha256=u_0y80TFC5hbZ2TKU9FD7UKbvaXZxf4YbzkyPnBlQRs,5401
274
+ pyarrow/include/arrow/flight/type_fwd.h,sha256=1dpmGmV-kYZFcGJSt2_B7yPUHRKeTSgEHz_6sEZaAew,1862
275
+ pyarrow/include/arrow/flight/types.h,sha256=u7rgUQReUIT4Sy_aXMzM-4ju_BfFhW1kvudMCbwbTtM,48816
276
+ pyarrow/include/arrow/flight/types_async.h,sha256=gTu4fBjhT1vcIBzV8U_4N4I4cpjJjtcvzoDHMKI1Miw,2675
277
+ pyarrow/include/arrow/flight/visibility.h,sha256=2qZkjy01imXTXyjlPcuxXbIxYNkb8EYsj8Kr0rXy2Jc,1644
278
+ pyarrow/include/arrow/io/api.h,sha256=MHYW_YGhET7hlTCiOC3siT6_NTy-G301TARAeMBQ1N0,993
279
+ pyarrow/include/arrow/io/buffered.h,sha256=wvHxUeDRx1JuuzsL7iqjKtfi4tSQAob5SYTG7yqXRMc,6080
280
+ pyarrow/include/arrow/io/caching.h,sha256=jzGdwSoJa6xM0g2pFC4Cy45k-qP7SU02GAMH8A-eDE0,6865
281
+ pyarrow/include/arrow/io/compressed.h,sha256=54vWktZDHbUgxil3pxn40RbcEE9UXCCXmgUOXAO8xrs,3898
282
+ pyarrow/include/arrow/io/concurrency.h,sha256=lyoMIDygubHSHHVx6izrbYrm70xUJlwt21XuL7SiUAU,8659
283
+ pyarrow/include/arrow/io/file.h,sha256=nIwicExy84oEVoFpGXiuZqqkIjDQXxnsGXgXn0FnIew,7964
284
+ pyarrow/include/arrow/io/interfaces.h,sha256=aPb7oAeJtMRDOaKCFrCpraaVM6azmL3Fb5bRoIS8aTc,15544
285
+ pyarrow/include/arrow/io/memory.h,sha256=F6fyudS9EnHu-ALtCZUEdLFd59TrglXAXM3rb5SYuQ8,6856
286
+ pyarrow/include/arrow/io/mman.h,sha256=JynPLLGCVYj7QUoYhmpfrDxX5smbx518TosmUpsTWk8,4280
287
+ pyarrow/include/arrow/io/slow.h,sha256=7MTXQ05Isoms758IdKgQHRlo_BjKo3H_0uPd2EP4XHo,4341
288
+ pyarrow/include/arrow/io/stdio.h,sha256=FhklhNBsYt0fZZKBmgBfMJ_y_QPcEBkD62KQqedy7Qk,2177
289
+ pyarrow/include/arrow/io/test_common.h,sha256=rkn9wORsf-2Ux5-5QReP450OlxVZ5S63mU_mGmNijbc,2215
290
+ pyarrow/include/arrow/io/transform.h,sha256=99VKVlOO8M4HF5121bJ5iAyi0eUMqg0ndafvZ6F4y_M,1950
291
+ pyarrow/include/arrow/io/type_fwd.h,sha256=ZBr1j65-odt3j0rl1wAa5nWt1xLz9aB1v9XMpQLCIA0,2411
292
+ pyarrow/include/arrow/ipc/api.h,sha256=r9Wui420OiJIULjh-f019qptrVDtmAr9B-vvVcGly6g,996
293
+ pyarrow/include/arrow/ipc/dictionary.h,sha256=RWQcycPKBl5aREIPi90Yd8jPqLcw6ioztlHAHpj1W0c,6281
294
+ pyarrow/include/arrow/ipc/feather.h,sha256=vTy77vOE53oct6Y47W4wxEKxR9lCB40yDdzDBCMD-mk,6200
295
+ pyarrow/include/arrow/ipc/message.h,sha256=Uu1HB-umSQhn_dOwPuvHk9BtTSjBeO3HlUEW1Fbw9B8,21838
296
+ pyarrow/include/arrow/ipc/options.h,sha256=JrdjVEx8i7ZCtySQX06wyx89JMzdSH14gmZ6Tt3UnEc,8111
297
+ pyarrow/include/arrow/ipc/reader.h,sha256=Q5eR0DfsmRZoC4BX6rpi74YcPIlwXeOT2kmxuPH00xQ,25538
298
+ pyarrow/include/arrow/ipc/test_common.h,sha256=q_RA0KvkJy8r19LP4kRo-wT2YZMo_VqjsUsayixLQgw,6942
299
+ pyarrow/include/arrow/ipc/type_fwd.h,sha256=0_J9-Ph_UwBFvwOLRi2yxfVp0Ir3IeLY5YV43Rn6cuk,1508
300
+ pyarrow/include/arrow/ipc/util.h,sha256=xJ1KaQe_wnYd9zfzVgJlLgGTVQQqxvb0xnZYutiHkfg,1455
301
+ pyarrow/include/arrow/ipc/writer.h,sha256=oKYcbhb99Evj2DJLxbCU4yN7euhIAdOsf4I751mvn5A,19963
302
+ pyarrow/include/arrow/json/api.h,sha256=QD-9FK6Ad10h03vRS5PvQWBX3jn1TQ2pTBhLv3kSRm8,900
303
+ pyarrow/include/arrow/json/chunked_builder.h,sha256=F9WcNFIXy_q9_Uc6-c37RvGgDFVPGo6bhh_OYIyPU68,2433
304
+ pyarrow/include/arrow/json/chunker.h,sha256=RRzKRPpQ-VGVdhF5INNVTwcoErZKForX2kaP6Dc226I,1263
305
+ pyarrow/include/arrow/json/converter.h,sha256=0Iwxxsr0ACxdQlpmFujSwVeF43N3RhZ_oSrea9YV8M0,3228
306
+ pyarrow/include/arrow/json/from_string.h,sha256=d0k95poMSwvGcm7cyGhM6B1fNKLBAiCCK-tq_4AA5oc,4218
307
+ pyarrow/include/arrow/json/options.h,sha256=pQRNifTwZ63y6pOBumz6Z8IWHXDUAUQKBPS991Kou7U,2301
308
+ pyarrow/include/arrow/json/parser.h,sha256=uLkYKfAOeTDhHgM7FTlSdVxUWne0t39CdgBgHwlZeks,3490
309
+ pyarrow/include/arrow/json/rapidjson_defs.h,sha256=xP604P1GxpoA4Mfoc-IliSPEO_eoeCG7bt_ZjwHU44k,1517
310
+ pyarrow/include/arrow/json/reader.h,sha256=3RyTYLnpcB9ceSGP8GoKWXqd-ZHZFXto2Fdf0nZ2ul4,5330
311
+ pyarrow/include/arrow/json/test_common.h,sha256=JGukhdBcXa58FPP739ncf7PUOYusmpghF13pXUHoIqI,10864
312
+ pyarrow/include/arrow/json/type_fwd.h,sha256=FWkyYf2wb91GygRRLXTTIFvvoztO1hfxNDq8TtivOWs,968
313
+ pyarrow/include/arrow/memory_pool.h,sha256=CHxH765Ny5bL_QS6M0L3CyoKzO17zxa4Yt3WVngPXgc,13259
314
+ pyarrow/include/arrow/memory_pool_test.h,sha256=r8SJHC1DWeAWT20rvf_iA0HZAxrHrypsau13Jzfk31A,3723
315
+ pyarrow/include/arrow/pretty_print.h,sha256=56IxeFqowZLx9iJHjQgDd74R6obQKSkcy3S5BBxyjB0,5877
316
+ pyarrow/include/arrow/python/api.h,sha256=Jmx_-qq-VIvz7SNMf2izoPHXVOMXsP6dmdU_RN57iQE,1208
317
+ pyarrow/include/arrow/python/arrow_to_pandas.h,sha256=v93Wyz9_vkNrQcEXMXS6udjzybgCI35Pea9jw23DpAo,6380
318
+ pyarrow/include/arrow/python/async.h,sha256=15MshOaSHLSsfKlQw4LCY338khPideC74IpLOFCygDE,2412
319
+ pyarrow/include/arrow/python/benchmark.h,sha256=OqCsqRe5osY2lhe2ecN8cXrdkmSFgLp6fXcf4_N9Fik,1228
320
+ pyarrow/include/arrow/python/common.h,sha256=kGiTc6ZCZY8FVgkNp5aY3sgEmrz2RYl97TRjYDgZEEw,15385
321
+ pyarrow/include/arrow/python/config.h,sha256=uCc_kLit-qUxfhsF561wvmdureyp5LG7bpjiZqaeXm8,1345
322
+ pyarrow/include/arrow/python/csv.h,sha256=7yixEpKzdR_wvjfG0rlkmtYpSyjEuNb2cPLueyKFa0s,1439
323
+ pyarrow/include/arrow/python/datetime.h,sha256=DhmweE37ZkIJD7y7MbwNyd-dqSUUbISecVMvORuoBm4,8191
324
+ pyarrow/include/arrow/python/decimal.h,sha256=cBQOd-yW1ArcUf29lPgEgBUI6I3cCcWT4B6uwd7fTbw,6524
325
+ pyarrow/include/arrow/python/extension_type.h,sha256=ovyhXsE-iornOx99_iOmQjZbdqIIpzUfiT7dTvVjQro,3266
326
+ pyarrow/include/arrow/python/filesystem.h,sha256=bnXcXSssY90VwD784m3CqQuNnZdwZxKpc8MltD4zJyY,5256
327
+ pyarrow/include/arrow/python/flight.h,sha256=-PpfQU8UdS3iW5695nezIQAg5jF2vcNGnEA7XIMffdY,14927
328
+ pyarrow/include/arrow/python/gdb.h,sha256=VN8aDtc1iFPIKsjFQ29RKQOkClvKAAI_KeTy_LFZcZg,1001
329
+ pyarrow/include/arrow/python/helpers.h,sha256=aI-OpruRiBsEE8G2VW4jZzgeKMrytQAtk1pmYKEfM2g,5869
330
+ pyarrow/include/arrow/python/inference.h,sha256=_44xuq5q-qktVBIigUbwmlgzOMJ4vHuauXQu-pXG1bg,2102
331
+ pyarrow/include/arrow/python/io.h,sha256=byOtFjW3NuetpJIErXFG62bsim0ZsWIAPgbes_JvI3k,3979
332
+ pyarrow/include/arrow/python/ipc.h,sha256=lHD6Yl4f_ARUIK6SlA4Jy75i7_K940NIGg6vHauLypc,2331
333
+ pyarrow/include/arrow/python/iterators.h,sha256=9aFm6h4iTZArpr0jSCx8PNIpzmPhmHgZENio6Ykyx6w,7527
334
+ pyarrow/include/arrow/python/lib.h,sha256=3rM7jSbR0TMpPpL3SZLZGTjhSt4N5ae7vsHImzWdXAk,4641
335
+ pyarrow/include/arrow/python/lib_api.h,sha256=FgdRKJvf6buyDiKn5L0ysI1HQmDMfWwTWteQRlUQ7Ew,20649
336
+ pyarrow/include/arrow/python/numpy_convert.h,sha256=JVUlnUuzWE4OwsoHPl4hvzi5_nkDjHR_wO5Iu8ZEVkU,4992
337
+ pyarrow/include/arrow/python/numpy_init.h,sha256=e4zEoclXjOzRydJi6iEa0SQZoBL2xax_odZ2JApkKlk,1026
338
+ pyarrow/include/arrow/python/numpy_interop.h,sha256=cwQPxxnxRjNiZan5KUEWkUwM8vzMY6whcHjrTwIDaNM,3216
339
+ pyarrow/include/arrow/python/numpy_to_arrow.h,sha256=-JhqPEg-tOBKhwRDhurxrAYQ6I-ws4CoghILzj9R-ms,2832
340
+ pyarrow/include/arrow/python/parquet_encryption.h,sha256=chfzOSypRi0LPc0maKif4W3HwwICc-YsiIPBkEjARmw,5761
341
+ pyarrow/include/arrow/python/platform.h,sha256=Krd8uqekd2JpGZPjzJxR4djupTMqzTj87ypY2Ob5kdg,1303
342
+ pyarrow/include/arrow/python/pyarrow.h,sha256=Pt2advP3jdTBRb5y2TtyDLVBACieOKI2IZblGu6kPMc,2850
343
+ pyarrow/include/arrow/python/pyarrow_api.h,sha256=uPrpVqzif4NlQkJvj-tZCIeBLBLSNE7ekGjKlCPCZxw,886
344
+ pyarrow/include/arrow/python/pyarrow_lib.h,sha256=D1QHgdorjjbTko9iMJLaFwykjnjIRBDLyuQaskohSmw,882
345
+ pyarrow/include/arrow/python/python_test.h,sha256=kdEUk3TAKggBdER-tT8y-fIcO2UnfEh2K8XFrnDYLYk,1237
346
+ pyarrow/include/arrow/python/python_to_arrow.h,sha256=r6iWOjXDn6gO6Qxo9mAlnm6f94jdAE8EmW0D23UJgac,2601
347
+ pyarrow/include/arrow/python/type_traits.h,sha256=UPe0QkAuIDKJAgTNmMxIehMePjnl7_rmsJEk6mCONKs,10589
348
+ pyarrow/include/arrow/python/udf.h,sha256=gLQGE1vYHlYJ_ceN1Kb0upw6cP90juYZ4b30VvuUPPM,3185
349
+ pyarrow/include/arrow/python/util.h,sha256=rUm_q03_LQ7r21r5GDrr1iG7pPzU7X1k9yxkF_IIiAY,1772
350
+ pyarrow/include/arrow/python/vendored/pythoncapi_compat.h,sha256=5TMOeKnV-Fpx4R1WeDeJz-3EvvLWyrgGZyCLNMTVVqs,42419
351
+ pyarrow/include/arrow/python/visibility.h,sha256=yIEoKC8dabjDOxjUdLB6CiP82nhFkyGdudhLyJNgmvU,1420
352
+ pyarrow/include/arrow/record_batch.h,sha256=8nw2m-97HyfKWuDUg2QanqXk5Zyj5vgYadg0u0nAevc,19525
353
+ pyarrow/include/arrow/result.h,sha256=jM6nd3xD0poYO-m4KtJyZdI8Oz9TK-_m037mxRX1T-c,18951
354
+ pyarrow/include/arrow/scalar.h,sha256=gzgwnr42qEtxoZAv8jBHxj1MaJYE6-Td7lzLnDJJQJ8,39412
355
+ pyarrow/include/arrow/sparse_tensor.h,sha256=_fFk2lDfu028OS5-zVgNjbFricre1XL6C6enE29cBro,26140
356
+ pyarrow/include/arrow/status.h,sha256=0ZuEZADlWVreBUSVFNTv2BqSVGkpcKmEyhhwHseYybU,17859
357
+ pyarrow/include/arrow/stl.h,sha256=6MUrXTP142Ub-UjNqHFFCCBpzqK85Oq7Wc8DSSVjeEY,19834
358
+ pyarrow/include/arrow/stl_allocator.h,sha256=uOGL4dW-nGU8YVQjD9p3wBwiXsN3EfS2c02FY4MMCYQ,5381
359
+ pyarrow/include/arrow/stl_iterator.h,sha256=QDUTi5L6m5hBuvbcRR0PdjkQVFKyiZT5m5qcmAdYN4I,10257
360
+ pyarrow/include/arrow/table.h,sha256=RTBxQMP9ENX8MlBoqFbPvjRXWwGesJ6_-1ybD7cyte8,16173
361
+ pyarrow/include/arrow/table_builder.h,sha256=kTA3F-72RoNR_YZNmxQmatxC2cUW5feh-cvJEmi0ZQ8,3870
362
+ pyarrow/include/arrow/telemetry/logging.h,sha256=RkwT276lQsdPtiyW00ps9Amzc7al_vCWkwoPQqA0kkc,3496
363
+ pyarrow/include/arrow/tensor.h,sha256=lJohqbawPWKOpqKuBGBkSOsDKQb8A8Tcetd21UBB_aM,10287
364
+ pyarrow/include/arrow/tensor/converter.h,sha256=BTiYEWpV34uKMP1hgVxdoeyBlh-cqpmVaaBeIc2ARig,2958
365
+ pyarrow/include/arrow/testing/async_test_util.h,sha256=miNSGn91JvXE1NojQusPWGTINiJkk5D5xurkPNwyBWk,2341
366
+ pyarrow/include/arrow/testing/builder.h,sha256=krrGgLfOOIO4E0efDzyIi-WHJO5kQ1ZEntwr0Zx0Leo,10081
367
+ pyarrow/include/arrow/testing/examplefs.h,sha256=rFGDG3rHqhPApekKIkd6YB8UbfkJq7v_eVQbbVpVyr8,1009
368
+ pyarrow/include/arrow/testing/executor_util.h,sha256=3WdGxQ-F5NfkJVCR0jv7hYG5k0YtdXuOoxACY3bmY7Y,1940
369
+ pyarrow/include/arrow/testing/extension_type.h,sha256=RfbzWo5M14MdiNC83Td8-QyyXtpOrRyqpHBrPtLmf6A,9870
370
+ pyarrow/include/arrow/testing/fixed_width_test_util.h,sha256=bcBgIZw5MhP7JeqHA39Xqu6FBJPoqdKs-89I-bQAocc,3167
371
+ pyarrow/include/arrow/testing/future_util.h,sha256=CyeXP1q0nDBKhFD2JpzHFOKhWhLa7ItvQ6OdQgm82Zg,6388
372
+ pyarrow/include/arrow/testing/generator.h,sha256=s8d4bIYKCPPpUlFfnlQUTCDWjkvcvoSN9AInFaNFz5Y,13894
373
+ pyarrow/include/arrow/testing/gtest_compat.h,sha256=Dpi16YFwo1rIcDWJp82L8S3uSQGBz7cfrAp-mA3rYWA,1344
374
+ pyarrow/include/arrow/testing/gtest_util.h,sha256=ytvpI2nr-lkTN5QVv0eZiEPD1AmB1n-K782XBcbp0IU,25369
375
+ pyarrow/include/arrow/testing/matchers.h,sha256=3gN-JYYEcXZCUYL9fvTTEAOOBqt0qBlrb-jtinmgDn0,17299
376
+ pyarrow/include/arrow/testing/math.h,sha256=e-gzmFKGjYViQLsRYcqfEKjepZBqTMAXiKq7zlyC494,1227
377
+ pyarrow/include/arrow/testing/process.h,sha256=gkmAniHmyI_3uO42ECd4vE05YwqkncQCrJ2RqlAe9c8,1418
378
+ pyarrow/include/arrow/testing/random.h,sha256=wM-SCUhU3dimKqeCtMEBXC0wqf4w44KwegeOfURWkVo,39388
379
+ pyarrow/include/arrow/testing/uniform_real.h,sha256=dOv2RAybNl5q230XN1Row2WxBBSeHMbvw59qbK5U6Bw,3023
380
+ pyarrow/include/arrow/testing/util.h,sha256=KZGfmU9mlj7_OdlmLglezBgTZ1oZbZ6qqLjKhz52CDE,6376
381
+ pyarrow/include/arrow/testing/visibility.h,sha256=gA2cVeS6ElGHHJpuCq1o8GU3iXUnTC62gOyPihyqWwc,1654
382
+ pyarrow/include/arrow/type.h,sha256=31MDHXaWI5V_r_oRhmmF-SfCmY_8zrkDrw8tYtyV4IE,100224
383
+ pyarrow/include/arrow/type_fwd.h,sha256=GUsaFN_32v2T-UJoRxn_wvPAZDmL11pWyAkovPtsZWo,24063
384
+ pyarrow/include/arrow/type_traits.h,sha256=o_A1YzFHGoJXpdZKLKgsfDnRxImkEiZ_L-DdZbnTMT0,58394
385
+ pyarrow/include/arrow/util/algorithm.h,sha256=okcbieN_LA2UJ29QIEQ8LcF9EblZvyu4iO9r_QK8deY,1262
386
+ pyarrow/include/arrow/util/align_util.h,sha256=dNr__5NA2xNOtMzs6UvGo6UjMzQU4JuqO42yVqZ7PIg,11307
387
+ pyarrow/include/arrow/util/aligned_storage.h,sha256=ypDrGFJgY2sCEc3CUy4r55KfSyI0wzBSeibrh22RyiM,4482
388
+ pyarrow/include/arrow/util/async_generator.h,sha256=gUuBfohP61D_9tRkTkyLofdn5L663HQ8mghwcm-PoOo,84940
389
+ pyarrow/include/arrow/util/async_generator_fwd.h,sha256=aVD2KiSnuZ06Jj2XBmk_cKH2umbhyJTKoDrHDmGRtyI,1797
390
+ pyarrow/include/arrow/util/async_util.h,sha256=FvGoRiKle-dv8lJrVYHr172NFJ8X-c49dGZM4YDN2oY,20219
391
+ pyarrow/include/arrow/util/base64.h,sha256=itYcwK10pBkmltzBw_iv4URuOxzvSrQ_O27DtKFkh5Y,1172
392
+ pyarrow/include/arrow/util/basic_decimal.h,sha256=wE6Axayo7B9RAgJbIWqpjst7NsfYADPqpRXN5KaCTJc,34596
393
+ pyarrow/include/arrow/util/benchmark_util.h,sha256=M2D-6zHAMywExxYOVZu-HskXP2tP47z8QD8OPMI3tEM,7852
394
+ pyarrow/include/arrow/util/binary_view_util.h,sha256=qEy7eRslndC0vu5WhXcOwFQOL9HzgOg07bFJaVRZrGE,4710
395
+ pyarrow/include/arrow/util/bit_block_counter.h,sha256=NOuBoqrN6SNV1G4RsOU9bTq57qYwD4ml7rc3zVdruaw,20592
396
+ pyarrow/include/arrow/util/bit_run_reader.h,sha256=yDeozzz0GvV38KbfIdhJi_JifY8EhoDPh1IgdOCkVOU,21513
397
+ pyarrow/include/arrow/util/bit_util.h,sha256=9HYCOHF-oAKjzSVmHVerDXxuN0Kypd4srYYa_zqlTEI,14008
398
+ pyarrow/include/arrow/util/bitmap.h,sha256=AO08gS0-AvuG-7xY98tCUQmqhyurFho5pOLotVcl-0A,17818
399
+ pyarrow/include/arrow/util/bitmap_builders.h,sha256=MDLiV82E0jnupwapAWCptLc7ZFlbzl-Y_2dH1SVj7l0,1626
400
+ pyarrow/include/arrow/util/bitmap_generate.h,sha256=LS3946GllKz4xNShS8VwA-v12rVNgvSLCY4nViapFC0,3773
401
+ pyarrow/include/arrow/util/bitmap_ops.h,sha256=7eP1jN3fFSYEWMCXHbtLzi3UcJb_Snxt7RyGM6bm6Kg,12421
402
+ pyarrow/include/arrow/util/bitmap_reader.h,sha256=hHEj2MvaofgU69Cx4U2xgBxKWoPqjblJJQ6mXwLqu9k,8667
403
+ pyarrow/include/arrow/util/bitmap_visit.h,sha256=PU07JCo3_618ZWJMxiTIZW6dfETceXgbjfU1YeEfyYE,3558
404
+ pyarrow/include/arrow/util/bitmap_writer.h,sha256=ozTI1xvzqiv-XkJx4RpUHwqvPS68wwr8bqkd7YPt3xY,9673
405
+ pyarrow/include/arrow/util/byte_size.h,sha256=Z9HxkPG4DAMSJ5bxpglqUP3UP-vnMViRb9KgTrOhh_s,4085
406
+ pyarrow/include/arrow/util/cancel.h,sha256=LwAWfES1tiRHZCyYiOqpxSaRVm71_PxhiLOldIUN78Q,3777
407
+ pyarrow/include/arrow/util/checked_cast.h,sha256=0XkAxq3kuBxU_pMZ_r6rmgovb5zoFHhq9nZNuWKkgVQ,2137
408
+ pyarrow/include/arrow/util/compare.h,sha256=fduKjx9GOppoGg_dalQZ6HIBGPnSOfk1njHLwagMjLU,2044
409
+ pyarrow/include/arrow/util/compression.h,sha256=VUyX1dkEIzDdm_fguztqULWKTECysHFDhGRlYpxJkoU,9112
410
+ pyarrow/include/arrow/util/concurrent_map.h,sha256=hmRw2luX9OVbYwIyMXc3fEgof4An4owLnWrAsKgXKpM,1843
411
+ pyarrow/include/arrow/util/config.h,sha256=bkWOcuSQ0a59kbgn_6IAoz-ZlM6nsdL7hg2-_dUhObI,2171
412
+ pyarrow/include/arrow/util/converter.h,sha256=W2AjP1nejt_BuKza5bCAvOQq1zPjVXer5CXFeWnNl2g,15130
413
+ pyarrow/include/arrow/util/cpu_info.h,sha256=iSTpvKi1qUptq3OIHjJqKyHa2T-55beQIr9LpkbfZfE,4627
414
+ pyarrow/include/arrow/util/crc32.h,sha256=mbAGpVjfRlJS1npQaAgDBWJYe6WeflXM6J-ZBO9MSTQ,1373
415
+ pyarrow/include/arrow/util/debug.h,sha256=Y8UN-qs-hijFAWr-LKoNq1dpI2ol-krDuy1xTCVYgb4,1000
416
+ pyarrow/include/arrow/util/decimal.h,sha256=pA73IUxU11ybaX0ktxHTGukdwRrnZnbIjUIP2qU3DiY,20814
417
+ pyarrow/include/arrow/util/delimiting.h,sha256=ZFc1v-DOeBEBfWYcN4-cnxvQMToxeGJeJZ63Z0nrWgc,7498
418
+ pyarrow/include/arrow/util/endian.h,sha256=XdafzOUAhMs_aa3nVVquJNaXNiCThiwPQuehA2hEEsE,8481
419
+ pyarrow/include/arrow/util/float16.h,sha256=qozztfD4Kxdb8FiOOfhlz8vO9nVVJA_4DfEe_oBO5xs,7660
420
+ pyarrow/include/arrow/util/formatting.h,sha256=45DQ8mWxEJy7JAlgeYAMVY3zVi1UeD_y5ZTZMtpHkkM,23183
421
+ pyarrow/include/arrow/util/functional.h,sha256=s5Okz-_uMJAewic7N56S4dBy_ukiRavDIrshrZqyyvY,2501
422
+ pyarrow/include/arrow/util/future.h,sha256=rZTN7sWSnqvBnWAM8QiaiHBhRwcWkX7HowdJPciKtms,32496
423
+ pyarrow/include/arrow/util/hash_util.h,sha256=5pAvyvrjKBuQsZDUisGdoF_z5C3-t_yEYO3fzu5zCes,1984
424
+ pyarrow/include/arrow/util/hashing.h,sha256=pwjU1sb3a1_Hwm8_kXzNcU8ZqHrNsOqis0BwbeFZzls,35563
425
+ pyarrow/include/arrow/util/int_util.h,sha256=1l6c85GqyP_k5ZOsOyqu0mgaA9YBo_JJe4fv_4eNEJA,4996
426
+ pyarrow/include/arrow/util/int_util_overflow.h,sha256=Vqw5Z7_qrQTT9-Q74B8M3tGT5W3OvHCf0HQR6UsMAb0,9030
427
+ pyarrow/include/arrow/util/io_util.h,sha256=xXiHjv9mCYhc1p8diidiGTCUM_PFEKyCJRUOL1J5j64,14556
428
+ pyarrow/include/arrow/util/iterator.h,sha256=Ylog7ilUxMiMgRcKvJIk6WvZNYAps8OqZ2gj8pKem-E,18610
429
+ pyarrow/include/arrow/util/key_value_metadata.h,sha256=m-o5pRI-eyo_32FVsr4byAdE2zcUKul9ROsqE2Oj9Ug,3689
430
+ pyarrow/include/arrow/util/launder.h,sha256=SSTWzD4H-Oy0TExl13n4sWqHiRLlKtBxT22r7JZZ7ZI,1081
431
+ pyarrow/include/arrow/util/list_util.h,sha256=qO0VnbXcxWfgMuZ4IOYsQk1Jo83EQI64MP1uK-gyWgs,2083
432
+ pyarrow/include/arrow/util/logger.h,sha256=FeQZRydUwfQWgEhMZAQpAPk2d4xXw6e4Wo6lZmqYH6w,6879
433
+ pyarrow/include/arrow/util/logging.h,sha256=8sm0vrwf1sBwVVKp8gZ1IPeLSqMKOwnSZaROf7iyEGU,9390
434
+ pyarrow/include/arrow/util/macros.h,sha256=gDBQmNdT6F8O2MFq1P11LMBbIzQ7jBOeXSrelxXU6l4,9543
435
+ pyarrow/include/arrow/util/math_constants.h,sha256=V4WHS9hLZcdYq2Z3bb4jFiaFSpCUuXqPhF_RooxA0ow,1144
436
+ pyarrow/include/arrow/util/mutex.h,sha256=mpMrqt-32hbEA8kwa8M2S7dPJ2Eui5pAuWwvFi9qemA,1897
437
+ pyarrow/include/arrow/util/parallel.h,sha256=Yo9kZkn97VGiVNNCwwyumLE3RcY6ROXlgysgGlzZ6kY,3897
438
+ pyarrow/include/arrow/util/pcg_random.h,sha256=Wb4huSnThKxOkUJTPjIUZBebkjs-FlzDVbjZjK_bTzc,1285
439
+ pyarrow/include/arrow/util/prefetch.h,sha256=2clukiLMMeCJ7R9QNeoogx8TYDUtta_qla-LvkKSJMw,1282
440
+ pyarrow/include/arrow/util/queue.h,sha256=vs-xE_jGsLwiWsCiSIshMMPxm-XKxThG6fRLoghFEYQ,1046
441
+ pyarrow/include/arrow/util/range.h,sha256=EO6ta9Am_O3xjocTDAj3hMpSY4rxiZ9rdY2lDQamNUY,8990
442
+ pyarrow/include/arrow/util/ree_util.h,sha256=_GlXRN7vPxzrq9hAuKz8X7IptaxQ7pz65Wlu5gtnNHI,23372
443
+ pyarrow/include/arrow/util/regex.h,sha256=9Ilm_WKJawvl0MbRXYFU6nCHqiAnctxjEXZDgTK99FQ,1793
444
+ pyarrow/include/arrow/util/rows_to_batches.h,sha256=5foVd7Rxoqf7-g5U_yiMyRcVb4zJEgBNrXqpqsoCtXk,7283
445
+ pyarrow/include/arrow/util/secure_string.h,sha256=tdWJeju2GcDRgV2WWWntOVNNaqriASbalKWoVQhpAlk,2545
446
+ pyarrow/include/arrow/util/simd.h,sha256=6Use6liJ1LrtDRAYXoh3fJhOe_O9XU13KupRQ3FKPOo,1730
447
+ pyarrow/include/arrow/util/small_vector.h,sha256=PVRqkEnYggV7cUMHCZ8TYu6wOYvuWSZti3YyUIKoN3k,14951
448
+ pyarrow/include/arrow/util/string.h,sha256=2DTQAN5oKaOObhO628A9xWJZLU92hUZgxBR69u5a8tM,5457
449
+ pyarrow/include/arrow/util/string_util.h,sha256=B5QOPk6PUq-d-hUvBXKsq1EgiylrKHtCWpf06G761qY,2465
450
+ pyarrow/include/arrow/util/task_group.h,sha256=ndcevZLV91JlhUjTy0STS6vgfrnlNIds6PH9CogPbY8,4468
451
+ pyarrow/include/arrow/util/test_common.h,sha256=3VdYSwRySLA9maOaK08XBIGUKfFG0h8BkH4wT5gg2Ds,3074
452
+ pyarrow/include/arrow/util/thread_pool.h,sha256=VX9y7hux8Pqz-2v14_ZaAKFlWiUm3F7In6IgzjpCEZk,26235
453
+ pyarrow/include/arrow/util/time.h,sha256=yUWd7RjFhZUrDqJ2brrCdz9SUovAaM4Sv1GAWlW8A7I,3536
454
+ pyarrow/include/arrow/util/tracing.h,sha256=-7AEJ2qsSlJ3IMwQ4Gw_5KV0R1UPAmF-YHfFJchO4po,1331
455
+ pyarrow/include/arrow/util/type_fwd.h,sha256=JPBUVMn_mAAvXFDrr_k1aYvZD4LBaLP3PryqhLyvd98,1885
456
+ pyarrow/include/arrow/util/type_traits.h,sha256=aJTwAiQQOIgscT967mH_Ho7HJEFB8GnH-NHrVIP6nhQ,2354
457
+ pyarrow/include/arrow/util/ubsan.h,sha256=8po3kAZISu5JpMuKYesq9SLRTBQE2eQ166u9mMSBuEA,3314
458
+ pyarrow/include/arrow/util/union_util.h,sha256=B54pu91sREwY6b2_MFWCh5Gl_19tytEY4FGEQmPTtAA,2033
459
+ pyarrow/include/arrow/util/unreachable.h,sha256=z23Cp8loRsJJFdIx__AJRBzQzN8dAOnRmktsMIqW9x0,1100
460
+ pyarrow/include/arrow/util/uri.h,sha256=7DAZEXo-_N4bLm9dyPlpCge1WgbLRbm35Zvhu_T9Fzs,4005
461
+ pyarrow/include/arrow/util/utf8.h,sha256=Bon6sFrfWHTRc-aTxE7AIznWG1UMLsr0iukjvg209lM,2090
462
+ pyarrow/include/arrow/util/value_parsing.h,sha256=8mU_MJkI48xvZcQooAIxkL3QJS3YGq8Ig2qY4vEQGBI,31619
463
+ pyarrow/include/arrow/util/vector.h,sha256=D24efIJv2EJfjiW75tNCU1LbIhIsDxd964fyXUgzbCY,5660
464
+ pyarrow/include/arrow/util/visibility.h,sha256=lMtvgAPuan0Ca8hR6Ca9ZCZ6HxrOWdqy2Fyys2To96s,3333
465
+ pyarrow/include/arrow/util/windows_compatibility.h,sha256=Uz2JwnhEnqXRMLRXmvbCX558Wfv-0zE1MWL7iBzRUa0,1294
466
+ pyarrow/include/arrow/util/windows_fixup.h,sha256=0Q0aniGbX6vG0IFVG-1PKUg7LMfOyQ3avtBtgk6qWxA,1487
467
+ pyarrow/include/arrow/vendored/ProducerConsumerQueue.h,sha256=kQtEadAfKO3qYjALi1ywgCaE0ov2aGQBUFdMS1qQC48,6318
468
+ pyarrow/include/arrow/vendored/datetime.h,sha256=VP3LPk99XyPSS6rNRRIdtY621QBZwEzoJnVNf8Yfihg,1130
469
+ pyarrow/include/arrow/vendored/datetime/date.h,sha256=6U9mizpKzo9zkzmJtxPQG2W18lkiI3GbYWqS3yeloQU,246098
470
+ pyarrow/include/arrow/vendored/datetime/ios.h,sha256=yQF0Zks3YJBkwb9eVfOWSNSe5Avr4oZopq4lyQPIrm0,1736
471
+ pyarrow/include/arrow/vendored/datetime/tz.h,sha256=lRhUkOWr7B86Ex1h-nzKesuS9F8n5DK4k5FUoP5RrMA,88200
472
+ pyarrow/include/arrow/vendored/datetime/tz_private.h,sha256=8hd2Z2TmOYWmTe-KtAafsI7l5xqTPi54dpVkS7jQ_s4,11066
473
+ pyarrow/include/arrow/vendored/datetime/visibility.h,sha256=5y9-u5WTzSxSMMn31oyed-qXli8vb5SYORHT-3QDVnA,1032
474
+ pyarrow/include/arrow/vendored/double-conversion/bignum-dtoa.h,sha256=ug8vS5I3hPBzzWy8oNbgFxI2TMfB5lH7h2GqA7feh5M,4444
475
+ pyarrow/include/arrow/vendored/double-conversion/bignum.h,sha256=2JlGD5vJLfiFtxZPhQ_cxgAp9HslZxsCv75mott_vtI,6103
476
+ pyarrow/include/arrow/vendored/double-conversion/cached-powers.h,sha256=0ngMtGe0Z2w-rRx02TXZce4oRwGkUIyqTTXaWDQ3uzc,3145
477
+ pyarrow/include/arrow/vendored/double-conversion/diy-fp.h,sha256=wDWYQCswEEMKvIqSrmNV6c8rKuRwEhxjuJfG1D3vMM4,5227
478
+ pyarrow/include/arrow/vendored/double-conversion/double-conversion.h,sha256=gxyJNQw6njGyORh7oKiRbeMXOTG7wFhaGLNNf2p4SCE,1838
479
+ pyarrow/include/arrow/vendored/double-conversion/double-to-string.h,sha256=LgPPmQstU7ODW1sYBQqPiGqqE9rn9cXXhv4NepiLcMQ,24397
480
+ pyarrow/include/arrow/vendored/double-conversion/fast-dtoa.h,sha256=mp-y_ztzGDBZpXrXob3GxoJlVQ2d72HraY3HrBhfySg,4212
481
+ pyarrow/include/arrow/vendored/double-conversion/fixed-dtoa.h,sha256=G8xnzmSUSewcLO_31lSDFwGwtYX-UNrPfBnFET9CQBE,2886
482
+ pyarrow/include/arrow/vendored/double-conversion/ieee.h,sha256=PkmBx5i6U4mxaVNAHigdSzFSXwy5HnQVToquqqn6wjE,15730
483
+ pyarrow/include/arrow/vendored/double-conversion/string-to-double.h,sha256=qVlN6Ipax1SxNPpBLDgwVWiwf9hP03WhQ20V07cHC7U,11146
484
+ pyarrow/include/arrow/vendored/double-conversion/strtod.h,sha256=NJ9MHQpDfEtOBOeb75_p6LFmOnkDoe83Lyt7MyR-XxU,3162
485
+ pyarrow/include/arrow/vendored/double-conversion/utils.h,sha256=-4-s2NNi2xpcVkQ1FC21SelDLJoDM_O0xPelwq9mevk,16034
486
+ pyarrow/include/arrow/vendored/pcg/pcg_extras.hpp,sha256=XtzT6-JHWmGxRuuMnDM9_0AXbOb4lzGWPyTXqdH2mGI,20433
487
+ pyarrow/include/arrow/vendored/pcg/pcg_random.hpp,sha256=79Y3YTo5rbOcOJlxfzbA08IrwVXRjQyNwaTw1LSuo3M,75455
488
+ pyarrow/include/arrow/vendored/pcg/pcg_uint128.hpp,sha256=IpLvXip_sqyyGctGpWuJ5ac78Ceoj9lmvYvdUcjch9Q,29771
489
+ pyarrow/include/arrow/vendored/portable-snippets/debug-trap.h,sha256=nco_jVnzpnDASOnTnPFE8CCj9uwOWhyV-kBgoBmnf8o,3164
490
+ pyarrow/include/arrow/vendored/safeint/safe_math.h,sha256=wqebXHwlq6svAhOY7VAheyz4lavtU2MF4B9nwFdgV78,79133
491
+ pyarrow/include/arrow/vendored/safeint/safe_math_impl.h,sha256=-uRtvkP8VnHf9DW3BikTzS8_6FT9FUtw_uKpmuAnYPQ,63706
492
+ pyarrow/include/arrow/vendored/strptime.h,sha256=6IG4iT_rLr1Z-r7FcitdiZyEQ28slbb8r8ty5ik57N4,1247
493
+ pyarrow/include/arrow/vendored/xxhash.h,sha256=ExWtVPlfaed4_G728m0ZVyo_x78z9lx0E_-aZ_MB0l4,862
494
+ pyarrow/include/arrow/vendored/xxhash/xxhash.h,sha256=w0DdoWurKi0_e3N6M7L35xLo9ZK3yjBv9EG8M9FsHPM,286913
495
+ pyarrow/include/arrow/visit_array_inline.h,sha256=UtSCAHQQfOIMqAD-Q8gXRqqSOJbDF7hbIcgXx1KHcNE,2510
496
+ pyarrow/include/arrow/visit_data_inline.h,sha256=SGZ6DMslT1nctVmAFq8QeHFiTB5V-jyHr2N4XU8h2OE,13008
497
+ pyarrow/include/arrow/visit_scalar_inline.h,sha256=hxfWYgeRl22v7iANSNoIR8RDCJWAYlRRSfhbEIPotoI,2487
498
+ pyarrow/include/arrow/visit_type_inline.h,sha256=xuai02khil9Qsu-f9LOl19XGdfireR0h1S4Sz3wGyDM,5599
499
+ pyarrow/include/arrow/visitor.h,sha256=-EL-W9V3NZIn3sxAEXjF9N-Xae5Gz2O6ScuS6vEzuJA,8881
500
+ pyarrow/include/arrow/visitor_generate.h,sha256=MRXQDAazSWim9pqablmsHkHIgqKJfNX1fFUfMNDSU1s,3399
501
+ pyarrow/include/parquet/api/io.h,sha256=D0-NRwdb1FrXH8DKZsjZ8MtfZjjUaboR_lv1iFLbr2A,867
502
+ pyarrow/include/parquet/api/reader.h,sha256=njU4e2U-9SWf-XtxKdwRqezF-hLF5dAKIWUZFmyawa0,1239
503
+ pyarrow/include/parquet/api/schema.h,sha256=rDl6YZ_-iwqcmp7t_rSADxNtiJqJtdl_bHlbOJfCtE0,876
504
+ pyarrow/include/parquet/api/writer.h,sha256=wR783UqPiqunq9PY90ae-3lCkuQlScWdFbanzal8NpI,1032
505
+ pyarrow/include/parquet/arrow/reader.h,sha256=O4-Zos8jfLU9DyXy2Xh_dx-f494fS1pfOE50do9w3G8,15948
506
+ pyarrow/include/parquet/arrow/schema.h,sha256=EBNwRSV2xGo9YQcBQm7lrGrsRoKSy6dkflJlVxxjSKc,6388
507
+ pyarrow/include/parquet/arrow/test_util.h,sha256=1DyYHyayjaO-_Y_0BxC_rEotYsIzb6nGVE6Tma7Pcek,19329
508
+ pyarrow/include/parquet/arrow/writer.h,sha256=3wlkytkE4b2Kjj-IykYFc-P1-3p-o1mzm27eAUNaEVA,7181
509
+ pyarrow/include/parquet/benchmark_util.h,sha256=8bubjU8G6X38FIRNvymuzKsEWua2vclIXF6BOiDm4gg,1805
510
+ pyarrow/include/parquet/bloom_filter.h,sha256=xeVhd_sBR2xpcGtMrJdNMCzSDJKqNWdGkkg61zXbpbE,17416
511
+ pyarrow/include/parquet/bloom_filter_reader.h,sha256=fFhDlD57beIwKGzs-rYy1VXW_GuGXgndgDByxExKbhE,2958
512
+ pyarrow/include/parquet/bloom_filter_writer.h,sha256=rvqjqszJJyQuwNJo9mCr_Ul5Ls0DwoRiiWZlN7uIzao,4446
513
+ pyarrow/include/parquet/column_page.h,sha256=Z1fjoRsWbrvVRQi3zA8Hthvk_fqbXZpJdnz_WFtlpBw,7182
514
+ pyarrow/include/parquet/column_reader.h,sha256=CATcaES0AgBa_V_1ulU85zRG2gAt_hLovU3LcS5aXik,21025
515
+ pyarrow/include/parquet/column_scanner.h,sha256=kEe6sFLctNQdYHWSe8kZMJn2FFwPpQ9YV-VsHFZYuWo,9127
516
+ pyarrow/include/parquet/column_writer.h,sha256=y8LfvcZ290Tk0hPA-8a5oVM6iUvACvEP6l3aWkzIrww,13306
517
+ pyarrow/include/parquet/encoding.h,sha256=KFkMm-A-ZAYjMFkqagoDh60CughJXac1JMrdvOTSae0,18676
518
+ pyarrow/include/parquet/encryption/crypto_factory.h,sha256=suhT1Y0fLf2aQsaWj9wxzzifdI4l9CSZdB9zctanXWg,7919
519
+ pyarrow/include/parquet/encryption/encryption.h,sha256=UCcmqgrm3chOf4x6wfFrJQj8XEKyCGioXxIiB4OGPeg,16673
520
+ pyarrow/include/parquet/encryption/file_key_material_store.h,sha256=8HQG0om1FEes8bOWBnRlVh9ZBjOIkRysBzix8-JLp2Q,2257
521
+ pyarrow/include/parquet/encryption/file_key_unwrapper.h,sha256=SGegOCl7zTZaMxSlNPYngEhY5OIiU-chYOqJSj8yWGM,4981
522
+ pyarrow/include/parquet/encryption/file_key_wrapper.h,sha256=HnBiCKR5_-knM_qEKyx1qSL4axNgNKceL07MQWldcqs,3862
523
+ pyarrow/include/parquet/encryption/file_system_key_material_store.h,sha256=mVhTRmMcVE8TpiEUACV_0_-7c67x8OMAv86cll2mLCA,3788
524
+ pyarrow/include/parquet/encryption/key_encryption_key.h,sha256=Rpvy8h1PmOtOJeVKcSiiSYKufA_mCmj79-Ejzh6z6pc,2376
525
+ pyarrow/include/parquet/encryption/key_material.h,sha256=q8dxSsKsKNPwgNo7GWZTSV-gZkysfEBnHIOtthnmuS8,6094
526
+ pyarrow/include/parquet/encryption/key_metadata.h,sha256=9dLFh5ppO4icbYkJMNpyT1s43wfAY0UIMdgNkzfiWA8,4094
527
+ pyarrow/include/parquet/encryption/key_toolkit.h,sha256=nlY9ByHazymEOMxyY3LQbYg2ZQM_zqRLN4pJi_dLQSg,4803
528
+ pyarrow/include/parquet/encryption/kms_client.h,sha256=eEy5USk1wLgvOcH7gYNxGXlXSivNu20KjyGhB-_WMG8,3319
529
+ pyarrow/include/parquet/encryption/kms_client_factory.h,sha256=OnnMzSQewEckWA1vpsb2g4n7LBQ9zzDueMJi988dV6g,1331
530
+ pyarrow/include/parquet/encryption/local_wrap_kms_client.h,sha256=EagCyGP6g1jEBGsRQnyoQTQNaq75DEqL2xoOfqb6KgA,4132
531
+ pyarrow/include/parquet/encryption/test_encryption_util.h,sha256=u7lVvAqdrCuR2dOtgw8CTRlJZws4nxZX_c5JMK3ny9c,5485
532
+ pyarrow/include/parquet/encryption/test_in_memory_kms.h,sha256=e5lO3HejukqfqkbTMgo9Amfm6x1Bpv1DdgD5emxhEvM,4168
533
+ pyarrow/include/parquet/encryption/two_level_cache_with_expiration.h,sha256=WZoZHBB95ZuFSzcmB5B4N0INZDhlDe-zsNcoENzf0Go,4967
534
+ pyarrow/include/parquet/encryption/type_fwd.h,sha256=Y8CtkdgEEkelQiGOHiFxNm0jAtUl84UQS7ucBOK8tmA,983
535
+ pyarrow/include/parquet/exception.h,sha256=tzDCnB5cG0S8Tygu8SzO9sI7x0Ij6G0TA2R205tLyKA,6279
536
+ pyarrow/include/parquet/file_reader.h,sha256=RpkF2dVk3GWoGd0jTtTkC73hma5nnBUr7QipzzqxrVE,11442
537
+ pyarrow/include/parquet/file_writer.h,sha256=tYtGoPlFmEb1q0Modb50PHfXdBbmCIFxBlM5NkzABzA,10200
538
+ pyarrow/include/parquet/geospatial/statistics.h,sha256=5sNPeBM_HMnEmTt3uZ9RxLgiomrhU13mY6v8VZYSSmI,9090
539
+ pyarrow/include/parquet/hasher.h,sha256=88tpM7laeTGbnWqwLCvLAgIzpsr22VAXZ86VKCJGeRs,5564
540
+ pyarrow/include/parquet/index_location.h,sha256=fiGOTnr5H9JwcK36_A7qgA3tMOjN4eALi37qtC2QoB4,1526
541
+ pyarrow/include/parquet/level_comparison.h,sha256=drcd3Q01X1fOv5RezyxondOVPt_vQkc4X003dUzrhig,1344
542
+ pyarrow/include/parquet/level_comparison_inc.h,sha256=FxnbEl-Hv2XGSHfOxkdqA4A6s0wBPHt5Q3UEcNSUHsc,2555
543
+ pyarrow/include/parquet/level_conversion.h,sha256=DWo6cNqjR6JnBPb1Or-Oee5wyxwKfS_4bWn3qnWz4BM,9002
544
+ pyarrow/include/parquet/level_conversion_inc.h,sha256=9PGyaiHruhc9atVu8FU1TvQpOhkJlOOODLHtyQKcpWo,14574
545
+ pyarrow/include/parquet/metadata.h,sha256=ttridIXainISsXw58L3pbZqWfxqnVqI78yEN58RaV54,21624
546
+ pyarrow/include/parquet/page_index.h,sha256=2nQiXAvZCEfMKuGJjMQaMdFE0OR5dBHmFmS47Ye2mFM,17770
547
+ pyarrow/include/parquet/parquet_version.h,sha256=PvI1pMPrtAwH1Vpnm1gS0Q_SbbucqZU13kBa8EDXKTU,1195
548
+ pyarrow/include/parquet/platform.h,sha256=-Z03_WpxQpwZg_GdCpjgb1vUPCe-DB7JRnZ7BPPZxlg,4055
549
+ pyarrow/include/parquet/printer.h,sha256=TrztCNIK16tEjlaZhWch3jdTayHMPzjBdJaziVBefRk,1594
550
+ pyarrow/include/parquet/properties.h,sha256=xDXFqRutJRHTsZOR4H7YV33AeoiN01WG91FA034F54U,67455
551
+ pyarrow/include/parquet/schema.h,sha256=_ZVObLbuoZ-aCM96sIKfNENzZaOwhfEsix1NAPbxZHc,19387
552
+ pyarrow/include/parquet/size_statistics.h,sha256=opp3yZXAMEM0b0CtYmy5QYoscgDUfItG5VrIfZN2Pyk,4369
553
+ pyarrow/include/parquet/statistics.h,sha256=g4yu0QaWpxsQ6btqmgfUutrNGt3-jr2vyNdjaHraHak,18639
554
+ pyarrow/include/parquet/stream_reader.h,sha256=LfiFEcCJWW0-78qSMHONuXdVg9_MKRRFPL5cnrRJJ2I,9160
555
+ pyarrow/include/parquet/stream_writer.h,sha256=P6v6g5jni8Y7Vxe63ZokyCbMq4rQQKskyY09jq6sWAg,8058
556
+ pyarrow/include/parquet/test_util.h,sha256=quMHYsuEkJ3op1m5vDWpeDElJepElTU5I6S7gPD0mng,33992
557
+ pyarrow/include/parquet/type_fwd.h,sha256=2uud5ZQ45tbS96_mZX2lS34lZAZFbi5RDBGxgDrkXZQ,3235
558
+ pyarrow/include/parquet/types.h,sha256=vv3jPwBlYVQWZfbKOn4aZXDdKKKEC_4rT-9eGXSgKCA,28614
559
+ pyarrow/include/parquet/visit_type_inline.h,sha256=ztkWp2PdhtRctoq-jDhjxP0qV5BxKMC1CX33zUil_-M,2383
560
+ pyarrow/include/parquet/windows_compatibility.h,sha256=UqmjdtDSUHYXXSN7FfO5KqS-92ukyDG6iKOThvjcZ14,918
561
+ pyarrow/include/parquet/windows_fixup.h,sha256=R0sEz8lear84QSG4IkpGM_OUTXtMOwHLXRNAToREh_4,1081
562
+ pyarrow/include/parquet/xxhasher.h,sha256=TPbnPWlwFeTSUXC-xMdaezJ2ByqeokdcBKvReUcYMHQ,2181
563
+ pyarrow/includes/__init__.pxd,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
564
+ pyarrow/includes/common.pxd,sha256=9VL-bHI3mu_mqOiZfht5VhHicYtqYjkCWywdnzQxQCo,5105
565
+ pyarrow/includes/libarrow.pxd,sha256=PQiig-I3O_qNAOfET4nT16JqqNZ1t6aZY6rC7fygPUE,124588
566
+ pyarrow/includes/libarrow_acero.pxd,sha256=lIjLutUfN7zTbkytS0bmnCMgIZr1gQALzXmc3xPn0DI,5627
567
+ pyarrow/includes/libarrow_cuda.pxd,sha256=YKMKTSNWQlUvInVfakoe3uIh-jJjS-4QZ-tj2FHT7Ng,5051
568
+ pyarrow/includes/libarrow_dataset.pxd,sha256=tgTNdjXwbcaBkUdIepRecjTkHq0hLPjCyVru9gXpvOo,17693
569
+ pyarrow/includes/libarrow_dataset_parquet.pxd,sha256=-YdHCkSBT1tspnqbSze69P6D4e7kqC7lzBr-rLOJXF8,4691
570
+ pyarrow/includes/libarrow_feather.pxd,sha256=hIVe5CqIhUjc2nvfq3vjo1XoJm5qaXNZ3a1RWw8zS_U,2190
571
+ pyarrow/includes/libarrow_flight.pxd,sha256=hArBcaGOxIbr_2s3X7ye8F_4FfRIyUGK8rkzThn9Ae4,25384
572
+ pyarrow/includes/libarrow_fs.pxd,sha256=UuDOo-lTPMK9y-XOzzKvqqizgMx3jF8OCucQA3-mf7k,16091
573
+ pyarrow/includes/libarrow_python.pxd,sha256=Cnm3dd8SZKTdRT2lO0pA84Wt7i0huljw4zkSkIPwTwo,11987
574
+ pyarrow/includes/libarrow_substrait.pxd,sha256=j0pCpCI2ibMsMXAvQ-kXTyyNfHUv0A2odoBnoo084Hw,4161
575
+ pyarrow/includes/libgandiva.pxd,sha256=4MZoYNhY6EedN3et3tFvjVHMENJwPCwPYISK2fbR3EI,11828
576
+ pyarrow/includes/libparquet.pxd,sha256=KZUK1yHwuUXPn3-Fux0quadhcCk72EOYTpDqLyNIAEE,28748
577
+ pyarrow/includes/libparquet_encryption.pxd,sha256=kv-npCinYzNYnJOiq5uT44dT4ilc1MyCKjZjuPnn_hs,9017
578
+ pyarrow/interchange/__init__.py,sha256=hFVl1PV1F4Ovb92_NbtKgDsrqRquxi82guDjtkK0CQE,865
579
+ pyarrow/interchange/buffer.py,sha256=YANe1dybRIzNzd5x3FGoQb0DPfmzyzZOfvFHDLXF5CI,3466
580
+ pyarrow/interchange/column.py,sha256=YIflPEoStWK8YOLQfcd788L4WfiJ763tpHv4L0wjEdM,19879
581
+ pyarrow/interchange/dataframe.py,sha256=tOTq0H1TBOfzFrEN10GPAJnF4iyopd1jF_zKamvMqRQ,8622
582
+ pyarrow/interchange/from_dataframe.py,sha256=i88rxSpFyzBUlwaSNF_02LIrF_DC8foheEeKDzUL8RQ,19662
583
+ pyarrow/io.pxi,sha256=EqQoJTqmFMe_pCzlOXj1ix40vgBTN6q_ghKnGQiS0hk,90729
584
+ pyarrow/ipc.pxi,sha256=obOMebREZrL4yOVdbbPokpQDzwrXAW-0qZMn4KgFuo8,47149
585
+ pyarrow/ipc.py,sha256=zOt6WckF93DjQQC9AcVtBrtkNAt4SaLz9ZJO-TVqPNI,9883
586
+ pyarrow/json.py,sha256=bgpEq-S1JmTPNsmoBsBdz7R3A9Y3lwfpniQyadO8klI,888
587
+ pyarrow/jvm.py,sha256=onJUQO9Lh2tHs4ZChpr-Sx22kMVXN6E7YQcUw1R4c0o,9912
588
+ pyarrow/lib.cp312-win_amd64.pyd,sha256=gcEHjTUQpDk7UZikVB0zuQdBm7OPd3EFXtLTs3V8oUg,3792384
589
+ pyarrow/lib.pxd,sha256=DZG5n-DpWcav1e1FUrdoM6KZI6BpzHrcYWwJbW7zKQQ,18905
590
+ pyarrow/lib.pyx,sha256=fktFeCBvzCKLm4gGroDlOMtileGnDcThxnvNieZ2ABI,6754
591
+ pyarrow/memory.pxi,sha256=_Qcsttv1rgb5vX-eJuEqph_M2Cvp03WaV0ZLLBEwKL8,9104
592
+ pyarrow/orc.py,sha256=Mk8yA6yjmnRE8lpKW9_owf9J1IQ78rgm2BnklU5D9CI,12986
593
+ pyarrow/pandas-shim.pxi,sha256=cNGRNslccknAgRPxVM7qUUa-RtC3JVpWV5KmVhKfOHo,8130
594
+ pyarrow/pandas_compat.py,sha256=qr5n60KUOxgnm4txosxLw1wPH-LZ4eAka8_v6z6DD58,46689
595
+ pyarrow/parquet.dll,sha256=XmxE7OgNblyyq-ZuTF-4-ZmbWGn5Q0jsFpOd5SZ4fg8,7079424
596
+ pyarrow/parquet.lib,sha256=BCOSX9FswzAoeYIQ3D3ihDhIcuH72DxKgHKk3PRFD_0,871638
597
+ pyarrow/parquet/__init__.py,sha256=MP8hmY5y1-LXoEUg6VinrGfThZkw1HAwUIL4ddrSAxQ,842
598
+ pyarrow/parquet/core.py,sha256=CiSVrgz7y6XXtMCpX5RRRf2Hpw-VS7z14Pui5Upc0ug,102262
599
+ pyarrow/parquet/encryption.py,sha256=suFAyQ8WDB6TMNV0132AczhuOYMPoOdtjFDE8XyFg5w,1320
600
+ pyarrow/public-api.pxi,sha256=eOStTQZatUyzYnR9ylr3sBzAEmJQqCSx4cRuXoTHHpU,14507
601
+ pyarrow/scalar.pxi,sha256=mj6ADpstr8_wB0mZX5suN4Zr0qCQ1XjLXkF1HHknBtE,57704
602
+ pyarrow/src/arrow/python/CMakeLists.txt,sha256=psEMQqIKWjI2J7OIx0vE9TYQUNXHfTWVdL9F6GVGrZI,874
603
+ pyarrow/src/arrow/python/api.h,sha256=Jmx_-qq-VIvz7SNMf2izoPHXVOMXsP6dmdU_RN57iQE,1208
604
+ pyarrow/src/arrow/python/arrow_to_pandas.cc,sha256=zYfZfXao6mH15uJraG22CLd1hmBHGtwlA6CJjExlx3o,100934
605
+ pyarrow/src/arrow/python/arrow_to_pandas.h,sha256=v93Wyz9_vkNrQcEXMXS6udjzybgCI35Pea9jw23DpAo,6380
606
+ pyarrow/src/arrow/python/arrow_to_python_internal.h,sha256=DbOoJJai8YeS1JKBCloQlgzztwv1Kkjv3rF86nUK7ww,1789
607
+ pyarrow/src/arrow/python/async.h,sha256=15MshOaSHLSsfKlQw4LCY338khPideC74IpLOFCygDE,2412
608
+ pyarrow/src/arrow/python/benchmark.cc,sha256=-bPstUW6eQ843nOduN6dFYUfYaWeJlL8PctHJZkRQYI,1331
609
+ pyarrow/src/arrow/python/benchmark.h,sha256=OqCsqRe5osY2lhe2ecN8cXrdkmSFgLp6fXcf4_N9Fik,1228
610
+ pyarrow/src/arrow/python/common.cc,sha256=SvOQcfCRmg4TcaWIvs7-Lkx9XpjOfixWYQ1otP7FaO8,7955
611
+ pyarrow/src/arrow/python/common.h,sha256=kGiTc6ZCZY8FVgkNp5aY3sgEmrz2RYl97TRjYDgZEEw,15385
612
+ pyarrow/src/arrow/python/config.cc,sha256=k5MkK9K5ZjE1SLSdEuoPwPQ_bzItFNDJtIXO2g-gaLc,1449
613
+ pyarrow/src/arrow/python/config.h,sha256=uCc_kLit-qUxfhsF561wvmdureyp5LG7bpjiZqaeXm8,1345
614
+ pyarrow/src/arrow/python/config_internal.h.cmake,sha256=jKpbQQBnqfLCeuw-QtwiEk6Yn9Z4f6nSYJtdfIaNMsk,910
615
+ pyarrow/src/arrow/python/csv.cc,sha256=sosW1I3yNLLmoScv8o8ECYzLUB8ZiEboeDAstC8SVZg,1865
616
+ pyarrow/src/arrow/python/csv.h,sha256=7yixEpKzdR_wvjfG0rlkmtYpSyjEuNb2cPLueyKFa0s,1439
617
+ pyarrow/src/arrow/python/datetime.cc,sha256=R8lKjf3L9fCzXctEICxPkZo02LGSus9L6cPkTO48W7s,24281
618
+ pyarrow/src/arrow/python/datetime.h,sha256=DhmweE37ZkIJD7y7MbwNyd-dqSUUbISecVMvORuoBm4,8191
619
+ pyarrow/src/arrow/python/decimal.cc,sha256=6xexm_6y4Bjb2mE06awl6ZpdrBWFQaC5sfoIXpMJfUI,9964
620
+ pyarrow/src/arrow/python/decimal.h,sha256=cBQOd-yW1ArcUf29lPgEgBUI6I3cCcWT4B6uwd7fTbw,6524
621
+ pyarrow/src/arrow/python/extension_type.cc,sha256=XDV00VoDSJlX0EDnCbpxjOwSjAX-25SNx5lPWpTf9Dk,7254
622
+ pyarrow/src/arrow/python/extension_type.h,sha256=ovyhXsE-iornOx99_iOmQjZbdqIIpzUfiT7dTvVjQro,3266
623
+ pyarrow/src/arrow/python/filesystem.cc,sha256=TF2i8-laHGZJgDizwsMMBxPi0gTJEiC8RB9A6MK_zfw,6358
624
+ pyarrow/src/arrow/python/filesystem.h,sha256=bnXcXSssY90VwD784m3CqQuNnZdwZxKpc8MltD4zJyY,5256
625
+ pyarrow/src/arrow/python/flight.cc,sha256=HvazgDTLTtSjhviD7ZyU51RR-kb7fxCq_qSvqw-gKhQ,14774
626
+ pyarrow/src/arrow/python/flight.h,sha256=-PpfQU8UdS3iW5695nezIQAg5jF2vcNGnEA7XIMffdY,14927
627
+ pyarrow/src/arrow/python/gdb.cc,sha256=FT3WyklVGT5m0rcrQuyfXFTxWhL4RxbZrRGj8bDQnE8,25923
628
+ pyarrow/src/arrow/python/gdb.h,sha256=VN8aDtc1iFPIKsjFQ29RKQOkClvKAAI_KeTy_LFZcZg,1001
629
+ pyarrow/src/arrow/python/helpers.cc,sha256=flB7-REcglRLUiTQfTdswzjw8y9F2IIzcBhiCRAbwqQ,18768
630
+ pyarrow/src/arrow/python/helpers.h,sha256=aI-OpruRiBsEE8G2VW4jZzgeKMrytQAtk1pmYKEfM2g,5869
631
+ pyarrow/src/arrow/python/inference.cc,sha256=vsGuNbuumrMtMN5ogiHBt04kX8JinYrfGbNdk2-m7Vg,27694
632
+ pyarrow/src/arrow/python/inference.h,sha256=_44xuq5q-qktVBIigUbwmlgzOMJ4vHuauXQu-pXG1bg,2102
633
+ pyarrow/src/arrow/python/io.cc,sha256=hp3ckwW-K0Da8dFgNB4lus6rutgpqHq4mJ0ZkJYDOz0,12335
634
+ pyarrow/src/arrow/python/io.h,sha256=byOtFjW3NuetpJIErXFG62bsim0ZsWIAPgbes_JvI3k,3979
635
+ pyarrow/src/arrow/python/ipc.cc,sha256=0j0rCBxCObGLNKEksCFxnuLqJVtscnpMeOS_kyT7Jus,4607
636
+ pyarrow/src/arrow/python/ipc.h,sha256=lHD6Yl4f_ARUIK6SlA4Jy75i7_K940NIGg6vHauLypc,2331
637
+ pyarrow/src/arrow/python/iterators.h,sha256=9aFm6h4iTZArpr0jSCx8PNIpzmPhmHgZENio6Ykyx6w,7527
638
+ pyarrow/src/arrow/python/numpy_convert.cc,sha256=GN7ohRbIjRU9ERcFvk-S09VqOKR6z5U2wTXpGuQ04w8,21869
639
+ pyarrow/src/arrow/python/numpy_convert.h,sha256=JVUlnUuzWE4OwsoHPl4hvzi5_nkDjHR_wO5Iu8ZEVkU,4992
640
+ pyarrow/src/arrow/python/numpy_init.cc,sha256=539UpFy5xAvGyZ9OzjHRzG4bukjaFEcMmSeATD2Rq48,1211
641
+ pyarrow/src/arrow/python/numpy_init.h,sha256=e4zEoclXjOzRydJi6iEa0SQZoBL2xax_odZ2JApkKlk,1026
642
+ pyarrow/src/arrow/python/numpy_internal.h,sha256=Sk_AABqLkOCNoc0zWHR1eU2vAjac4IXfNK4TggLZcGg,5515
643
+ pyarrow/src/arrow/python/numpy_interop.h,sha256=cwQPxxnxRjNiZan5KUEWkUwM8vzMY6whcHjrTwIDaNM,3216
644
+ pyarrow/src/arrow/python/numpy_to_arrow.cc,sha256=HTo4XsZ0iMB4kMBgIKIcSSUvqsG60M9pbxF5pH-P5WY,35244
645
+ pyarrow/src/arrow/python/numpy_to_arrow.h,sha256=-JhqPEg-tOBKhwRDhurxrAYQ6I-ws4CoghILzj9R-ms,2832
646
+ pyarrow/src/arrow/python/parquet_encryption.cc,sha256=g9RLuAdKI0AlT4TuPVSHJIBAP7ts-nLSlVKm_RJwKRI,4554
647
+ pyarrow/src/arrow/python/parquet_encryption.h,sha256=chfzOSypRi0LPc0maKif4W3HwwICc-YsiIPBkEjARmw,5761
648
+ pyarrow/src/arrow/python/platform.h,sha256=Krd8uqekd2JpGZPjzJxR4djupTMqzTj87ypY2Ob5kdg,1303
649
+ pyarrow/src/arrow/python/pyarrow.cc,sha256=Lk8HHlcIzsSg4LTnzS6FW0yzAZgWuH0rZSBTI8i75Gc,3783
650
+ pyarrow/src/arrow/python/pyarrow.h,sha256=Pt2advP3jdTBRb5y2TtyDLVBACieOKI2IZblGu6kPMc,2850
651
+ pyarrow/src/arrow/python/pyarrow_api.h,sha256=uPrpVqzif4NlQkJvj-tZCIeBLBLSNE7ekGjKlCPCZxw,886
652
+ pyarrow/src/arrow/python/pyarrow_lib.h,sha256=D1QHgdorjjbTko9iMJLaFwykjnjIRBDLyuQaskohSmw,882
653
+ pyarrow/src/arrow/python/python_test.cc,sha256=EgJZli7NmBnBQe--iC_VYhVQRDrvM4WpLrs0ktcFbHo,33958
654
+ pyarrow/src/arrow/python/python_test.h,sha256=kdEUk3TAKggBdER-tT8y-fIcO2UnfEh2K8XFrnDYLYk,1237
655
+ pyarrow/src/arrow/python/python_to_arrow.cc,sha256=6Td3Lt_t_l9mVkGLv3hrxRVJCZI31ipeuATd-QYvRrc,51393
656
+ pyarrow/src/arrow/python/python_to_arrow.h,sha256=r6iWOjXDn6gO6Qxo9mAlnm6f94jdAE8EmW0D23UJgac,2601
657
+ pyarrow/src/arrow/python/type_traits.h,sha256=UPe0QkAuIDKJAgTNmMxIehMePjnl7_rmsJEk6mCONKs,10589
658
+ pyarrow/src/arrow/python/udf.cc,sha256=PcG1lpWvbT0fsq27qbOHDqJrbCBgOHK7GuZvagsAztA,30527
659
+ pyarrow/src/arrow/python/udf.h,sha256=gLQGE1vYHlYJ_ceN1Kb0upw6cP90juYZ4b30VvuUPPM,3185
660
+ pyarrow/src/arrow/python/util.cc,sha256=nfD1-SvggvaBJstLZw0I3F6SqNw2LVmN8FgAJ9f10To,1902
661
+ pyarrow/src/arrow/python/util.h,sha256=rUm_q03_LQ7r21r5GDrr1iG7pPzU7X1k9yxkF_IIiAY,1772
662
+ pyarrow/src/arrow/python/vendored/CMakeLists.txt,sha256=6MYldTCwSTzrxbHLzePRpUDdlKCJTBqLUd92X3aioOU,855
663
+ pyarrow/src/arrow/python/vendored/pythoncapi_compat.h,sha256=5TMOeKnV-Fpx4R1WeDeJz-3EvvLWyrgGZyCLNMTVVqs,42419
664
+ pyarrow/src/arrow/python/visibility.h,sha256=yIEoKC8dabjDOxjUdLB6CiP82nhFkyGdudhLyJNgmvU,1420
665
+ pyarrow/substrait.py,sha256=axTfPnyS2kGd2w6I1mJIAFSHSGlcY47zBF-S_Gv1a8c,1263
666
+ pyarrow/table.pxi,sha256=l_CDP4y0k9qOIE4XIotNEmMKS9FD3yaO5O46euagRC4,216495
667
+ pyarrow/tensor.pxi,sha256=ZWMYinkhzGmNJ-9uxc1j8o4738BMgGWkm39gWSOYaG8,54116
668
+ pyarrow/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
669
+ pyarrow/tests/arrow_16597.py,sha256=4MtaNkHRXf-ae8UPc_W0Sy7PQOSA38L2znT2LE0YSxM,1391
670
+ pyarrow/tests/arrow_39313.py,sha256=6iDq6Ci3q_SFDjA7RtZ27cnwmlyqGQQJgzThU5YPjG8,1478
671
+ pyarrow/tests/arrow_7980.py,sha256=W3Gbd_XbB9vC87k4VDIjyJgGfUurz6PKkFJn1pNdR4I,1124
672
+ pyarrow/tests/bound_function_visit_strings.pyx,sha256=QgKbbEM5Tm7ZNP4TTiEwpSut-sP0KEE7eT3K0KgRTw8,2093
673
+ pyarrow/tests/conftest.py,sha256=T7RNviU4V_ijcg19SltQNO0QoqVFPbLHqItV9sXI6N8,10361
674
+ pyarrow/tests/data/feather/v0.17.0.version.2-compression.lz4.feather,sha256=qzcc7Bo4OWBXYsyyKdDJwdTRstMqB1Zz0GiGYtndBnE,594
675
+ pyarrow/tests/data/orc/README.md,sha256=6J34Nh2eK930SY4vBkZbTlTnyC7ImMmVuJOFRIY8yDI,954
676
+ pyarrow/tests/data/orc/TestOrcFile.emptyFile.jsn.gz,sha256=xLjAXd-3scx3DCyeAsmxTO3dv1cj9KRvYopKe5rQNiI,50
677
+ pyarrow/tests/data/orc/TestOrcFile.emptyFile.orc,sha256=zj0579dQBXhF7JuB-ZphkmQ81ybLo6Ca4zPV4HXoImY,523
678
+ pyarrow/tests/data/orc/TestOrcFile.test1.jsn.gz,sha256=kLxmwMVHtfzpHqBztFjfY_PTCloaXpfHq9DDDszb8Wk,323
679
+ pyarrow/tests/data/orc/TestOrcFile.test1.orc,sha256=A4JxgMCffTkz9-XT1QT1tg2TlYZRRz1g7iIMmqzovqA,1711
680
+ pyarrow/tests/data/orc/TestOrcFile.testDate1900.jsn.gz,sha256=oWf7eBR3ZtOA91OTvdeQJYos1an56msGsJwhGOan3lo,182453
681
+ pyarrow/tests/data/orc/TestOrcFile.testDate1900.orc,sha256=nYsVYhUGGOL80gHj37si_vX0dh8QhIMSeU4sHjNideM,30941
682
+ pyarrow/tests/data/orc/decimal.jsn.gz,sha256=kTEyYdPDAASFUX8Niyry5mRDF-Y-LsrhSAjbu453mvA,19313
683
+ pyarrow/tests/data/orc/decimal.orc,sha256=W5cV2WdLy4OrSTnd_Qv5ntphG4TcB-MyG4UpRFwSxJY,16337
684
+ pyarrow/tests/data/parquet/v0.7.1.all-named-index.parquet,sha256=YPGUXtw-TsOPbiNDieZHobNp3or7nHhAxJGjmIDAyqE,3948
685
+ pyarrow/tests/data/parquet/v0.7.1.column-metadata-handling.parquet,sha256=7sebZgpfdcP37QksT3FhDL6vOA9gR6GBaq44NCVtOYw,2012
686
+ pyarrow/tests/data/parquet/v0.7.1.parquet,sha256=vmdzhIzpBbmRkq3Gjww7KqurfSFNtQuSpSIDeQVmqys,4372
687
+ pyarrow/tests/data/parquet/v0.7.1.some-named-index.parquet,sha256=VGgSjqihCRtdBxlUcfP5s3BSR7aUQKukW-bGgJLf_HY,4008
688
+ pyarrow/tests/extensions.pyx,sha256=Je7YHLuhd4fMQMn4GVPfAiyz8GPXBtX1z6pgclnyEq8,3140
689
+ pyarrow/tests/interchange/__init__.py,sha256=EVfaECqIP6zwm3-KeFxrnNB3-C4waxZUgr3MmUMTU6k,801
690
+ pyarrow/tests/interchange/test_conversion.py,sha256=Ugq49X6PJSh_GE5s7yKk6eD9IN-2hfB2mpCUrvC0Nqo,17155
691
+ pyarrow/tests/interchange/test_interchange_spec.py,sha256=LDSBpk6LgL1Rv3krxMrQnkT8QWAiVkfMFdtfslu3b6E,9675
692
+ pyarrow/tests/pandas_examples.py,sha256=9e910a13lzzl2U7bllcEL-IWQyzDcwGSMRU6ZgOU_V8,5279
693
+ pyarrow/tests/pandas_threaded_import.py,sha256=TkyeVQWGZNoRUgbx39KC5ENTV8q3bMmo9wJxIIxso0Y,1473
694
+ pyarrow/tests/parquet/__init__.py,sha256=HBk5_BESLXOn2axHI96jkaiO9dkNzfXHZAUPf0sXbgM,955
695
+ pyarrow/tests/parquet/common.py,sha256=Nge34hXXWz7jgar7Nd4oHkUmdyqngQ_xmwdTktMYvi0,6328
696
+ pyarrow/tests/parquet/conftest.py,sha256=V27VxdF4hf_AVgnYkBE4njbLtxOUDQhRj5NFeOARV5c,3267
697
+ pyarrow/tests/parquet/encryption.py,sha256=ILeYVD4aCD5EWwLI33wNHC0e2-pwlgbV7jV3E66mYqM,5345
698
+ pyarrow/tests/parquet/test_basic.py,sha256=xPdZuqPMDT11_PbO_xqWYgLF8IPYwU9tdoIQLt-GDP0,40969
699
+ pyarrow/tests/parquet/test_compliant_nested_type.py,sha256=gL9xcmd1IlVPXF68-pULYfryIrGcJI40NOd2btKH3mM,4010
700
+ pyarrow/tests/parquet/test_data_types.py,sha256=JhHPTNjkJWMDMVWT2Ap2KkeEUQfB14jHuKB8Dmdwo38,20652
701
+ pyarrow/tests/parquet/test_dataset.py,sha256=xntTt9nB_PIL80TKw23UvC3B_kkxquFcRY_4_ICN1Ww,45431
702
+ pyarrow/tests/parquet/test_datetime.py,sha256=g8vMoLGABOs3MgRm1-Pm3QW8fEkRHV5EMW3NXTaIr3Q,16859
703
+ pyarrow/tests/parquet/test_encryption.py,sha256=2uleMvHgEqYQ_E3tDBhIKMYQ4RInB9De0czgH3ekOgE,44286
704
+ pyarrow/tests/parquet/test_metadata.py,sha256=rMxPG46bKMK5wNvyW___SODMGHiGnXbWLc6urbD_8bA,31573
705
+ pyarrow/tests/parquet/test_pandas.py,sha256=O6dBggcRKwxatYrOJ8bLTXiio5oKyP0K113tpTqtlEU,23840
706
+ pyarrow/tests/parquet/test_parquet_file.py,sha256=0dpWX0OpodZrvXJLnylscgWutM4mKm_nfwLvCiA2p18,14319
707
+ pyarrow/tests/parquet/test_parquet_writer.py,sha256=dLOoviBfmjRBddPUAGmk1A7VevTO_C-ZbooGBAUpX1s,18761
708
+ pyarrow/tests/pyarrow_cython_example.pyx,sha256=Qgd7BEHzrxDVpdMzLplpD-XAkqN0Vu6-N75KGhLXkpQ,2176
709
+ pyarrow/tests/read_record_batch.py,sha256=J8MvpGBAv7rjvoseM5OnQyU9BL_3f2Ffdc0cYFvLh60,978
710
+ pyarrow/tests/strategies.py,sha256=L7X5T2fuHXsO8-oi-_LafgWjo1WZlWfpT4cVTL5YxWE,16827
711
+ pyarrow/tests/test_acero.py,sha256=_TQOurUB2igGV1Cnf4eUkQdjfsbOFuw2sZiqrKc0bVU,22452
712
+ pyarrow/tests/test_adhoc_memory_leak.py,sha256=AjG44vFpuJfzGoIT58TmFFkncVdBpXQJzLJkEokcbNg,1499
713
+ pyarrow/tests/test_array.py,sha256=wlS3NBvfKWDGgB5sVWVCv07KWAY5d7567eJjCimF6LA,164870
714
+ pyarrow/tests/test_builder.py,sha256=tLnE5vjV_DKUNhMs97s2BHjHKhgkwUSE4yMBJwgxniQ,2888
715
+ pyarrow/tests/test_cffi.py,sha256=as2tpWsvYTrccTebWO0hpQArQXIHojVZ87CNYY2vyP0,28334
716
+ pyarrow/tests/test_compute.py,sha256=G2Jzc7V8jWSoLXBsrCrz4AEBcY31fYHyoni7UoNxJG0,178449
717
+ pyarrow/tests/test_convert_builtin.py,sha256=gYLKoFLuExjqeyQD9cc6dpk6S-kYXDHY0n-VO3rFRtw,85590
718
+ pyarrow/tests/test_cpp_internals.py,sha256=88pGpkKwdNekrlepF8PGVsacUhFyp2qxjAJb3RNFVpI,1980
719
+ pyarrow/tests/test_csv.py,sha256=dGqN5foZ53safUhSXJ2i8ZdwYh3we83kw-4M1wwwFR4,87082
720
+ pyarrow/tests/test_cuda.py,sha256=_6ApUhZ4F4WCLT_7nohrnF2kIuAzM5Pl8yVUOUOmLHQ,36933
721
+ pyarrow/tests/test_cuda_numba_interop.py,sha256=OkJLW6XgoxymPgfaKgSfdJ7vDaCRtw5nxap-HQXJh8s,9054
722
+ pyarrow/tests/test_cython.py,sha256=HAFu6jP3vuyciMKW2eXKxghAi2au9Q9kO4s3nOcef8Q,7243
723
+ pyarrow/tests/test_dataset.py,sha256=LLQiBqZ80f0aRgHHG1eJUzfl2yviBHiuRhxC0G5lzk0,226849
724
+ pyarrow/tests/test_dataset_encryption.py,sha256=sxBXYGapkBDAqbXML7EAq8I3cwKMAUvxT1lHcSYMPKM,18188
725
+ pyarrow/tests/test_deprecations.py,sha256=qGsfYqoc2Ty5l3fIKL7zCM_IeGFgquPPv_5OWRAA6UM,914
726
+ pyarrow/tests/test_device.py,sha256=E1ElShO0Q_cBs63mtcVEsD3ARxN2c-Z2su1fJX-U2yU,2619
727
+ pyarrow/tests/test_dlpack.py,sha256=fPS7n5rM4Wc2qTKTPfz9RiZkfjzX4wvfpMfdlNdkBIk,18936
728
+ pyarrow/tests/test_exec_plan.py,sha256=bdEJdN7i5hc6qRKA-GTt5p9KHRqrsfaGjZCQL_XB9Qw,10433
729
+ pyarrow/tests/test_extension_type.py,sha256=nfe0czGKOxC24hKzH3toUM1NTc4J-g0nZgpmPrr750o,84024
730
+ pyarrow/tests/test_feather.py,sha256=D82ldyMoB6rpR4FKNF8xfrtZaMqnq5guPt72xKVRQ4Y,27844
731
+ pyarrow/tests/test_flight.py,sha256=zhK-7tJeWH8fj4zmLCDPuYQLgGC5kFOBRmYYriMJCck,107688
732
+ pyarrow/tests/test_flight_async.py,sha256=drcxCZ8YsYo0PJqyGavmM0bsJc0OLfta_QcYI0AwjEo,2961
733
+ pyarrow/tests/test_fs.py,sha256=W-pyd-rUy-DzttusGLAqXVuoL58yoQgs77oYI8pYmGg,76537
734
+ pyarrow/tests/test_gandiva.py,sha256=9DgDgJyjl7EnXAMYBgOqABUbCeDc723W6lmLmfzft84,16057
735
+ pyarrow/tests/test_gdb.py,sha256=p9vs5V2A5xJDl38f4jOd61Fvr1hyccx6WyemVCodE4g,49782
736
+ pyarrow/tests/test_io.py,sha256=QH7k2WBb_iEmOzsx7KBpgQU7i4mi9-mn30MstGjPjNI,66880
737
+ pyarrow/tests/test_ipc.py,sha256=A_223tKCWQVSotaTNmSdo26mHwaoBB1IAEBmqApmemM,48246
738
+ pyarrow/tests/test_json.py,sha256=7jcManGiUJlXW4xqzWWh2G5clSYH4J2EoGbHLTKGwfU,25043
739
+ pyarrow/tests/test_jvm.py,sha256=u7doo6NFP-_JUIwb338e_iNOj4KzAsz_kYYzwrQ2MYE,15910
740
+ pyarrow/tests/test_memory.py,sha256=IOC06cjmyA20a1710qDw9gJgqlzKp7n_8jyXLjE6aXQ,10013
741
+ pyarrow/tests/test_misc.py,sha256=0KCOWYu4clu82EsivWx_pb3W8pvI9JdYAcjBEMM52Xg,7929
742
+ pyarrow/tests/test_orc.py,sha256=HOHyCn8i7YOr7LvYht_xkybHu3INI6mPROuU1wx9ck0,22264
743
+ pyarrow/tests/test_pandas.py,sha256=JqYF3gAYABq15ES_VuCjTA48NffZCVweDSuGOK63_08,201502
744
+ pyarrow/tests/test_scalars.py,sha256=-QuiM4VJROF2diBUFEEEoV6Rm6igJ3b4RapukdMUEIg,34282
745
+ pyarrow/tests/test_schema.py,sha256=yTG6rlbgXFrjYJjbaLDTnaC5CaaSwwNirbfqHfCEloA,24289
746
+ pyarrow/tests/test_sparse_tensor.py,sha256=eoVNpUU07w7u136X5w3PHTdPXddyN5zHw1byMq8WpX0,18163
747
+ pyarrow/tests/test_strategies.py,sha256=Emz9qJHXwlcgzeA8N3Zxkz4DnM-82NsWJqtaJuDePOc,2235
748
+ pyarrow/tests/test_substrait.py,sha256=-MXjifR1a5zzIL1Rgm8rETkMu6qA4M_8YM4qKNy_olk,34007
749
+ pyarrow/tests/test_table.py,sha256=msK3lFQRPWXVnGjjV_UEGqzkrdpSba_6izdqG_cKXW4,133752
750
+ pyarrow/tests/test_tensor.py,sha256=-Cy3GoHMC4oaqQExN9BKdN_0aHdw6ZJOV3fkpdeF5Fg,6869
751
+ pyarrow/tests/test_types.py,sha256=y0AqEci74bfztnX5Hf8WKg8XHhTzXSWRlS0FHmcv2v4,46156
752
+ pyarrow/tests/test_udf.py,sha256=7tl7W8Hur8lpeD0TcPQyY_MNHP95DB1osYgUzwVwbpY,30703
753
+ pyarrow/tests/test_util.py,sha256=lTcgkYIJrq_9vD9qQF6gBWEWdYn2UcCEs2I1_j0G-Q0,5322
754
+ pyarrow/tests/test_without_numpy.py,sha256=69gobJK2_fq37P_ffFG1tgRIiopjqMY2MrOiPGOlYvQ,1913
755
+ pyarrow/tests/util.py,sha256=gVDThjtCzt3mp9e6dR-uRh7vf1c2hX33Ce_RnXODXw8,13634
756
+ pyarrow/tests/wsgi_examples.py,sha256=uLr0kLfVuPdMVl5wY-0_sT-lDlFJhEbT5zqbIVKAK0A,1383
757
+ pyarrow/types.pxi,sha256=blQY_sfMD4bOdFWgjunw1og123lju8GXZoQukSCNkdA,169147
758
+ pyarrow/types.py,sha256=-KOxNK0iCV3J-V1LvYOyg03TM8YgtbPNRRvxB02HiIQ,9941
759
+ pyarrow/util.py,sha256=LAf21HEmOzb3dz3GzKz7tVileUvVA4rrgtFWV2qttXo,9560
760
+ pyarrow/vendored/__init__.py,sha256=EVfaECqIP6zwm3-KeFxrnNB3-C4waxZUgr3MmUMTU6k,801
761
+ pyarrow/vendored/docscrape.py,sha256=QgFpJRG3lyDx6Q0sUuqkkowQ23up97bT_LlgkqG5K40,23691
762
+ pyarrow/vendored/version.py,sha256=cr57fm516rcswYHhTfyRDXt-yDWq1EAlRTrZz3mVHo8,14890
player/runtime/python/Lib/site-packages/pyarrow-26.0.0.dist-info/REQUESTED ADDED
File without changes
player/runtime/python/Lib/site-packages/pyarrow-26.0.0.dist-info/WHEEL ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: scikit-build-core 1.1.0
3
+ Root-Is-Purelib: false
4
+ Tag: cp312-cp312-win_amd64
5
+
player/runtime/python/Lib/site-packages/pyarrow-26.0.0.dist-info/licenses/LICENSE.txt ADDED
The diff for this file is too large to render. See raw diff
 
player/runtime/python/Lib/site-packages/pyarrow-26.0.0.dist-info/licenses/NOTICE.txt ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache Arrow
2
+ Copyright 2016-2026 The Apache Software Foundation
3
+
4
+ This product includes software developed at
5
+ The Apache Software Foundation (http://www.apache.org/).
6
+
7
+ This product includes software from the SFrame project (BSD, 3-clause).
8
+ * Copyright (C) 2015 Dato, Inc.
9
+ * Copyright (c) 2009 Carnegie Mellon University.
10
+
11
+ This product includes software from the Feather project (Apache 2.0)
12
+ https://github.com/wesm/feather
13
+
14
+ This product includes software from the DyND project (BSD 2-clause)
15
+ https://github.com/libdynd
16
+
17
+ This product includes software from the LLVM project
18
+ * distributed under the University of Illinois Open Source
19
+
20
+ This product includes software from the mman-win32 project
21
+ * Copyright https://code.google.com/p/mman-win32/
22
+ * Licensed under the MIT License;
23
+
24
+ This product includes software from the LevelDB project
25
+ * Copyright (c) 2011 The LevelDB Authors. All rights reserved.
26
+ * Use of this source code is governed by a BSD-style license that can be
27
+ * Moved from Kudu http://github.com/cloudera/kudu
28
+
29
+ This product includes software from the CMake project
30
+ * Copyright 2001-2009 Kitware, Inc.
31
+ * Copyright 2012-2014 Continuum Analytics, Inc.
32
+ * All rights reserved.
33
+
34
+ This product includes software from https://github.com/matthew-brett/multibuild (BSD 2-clause)
35
+ * Copyright (c) 2013-2016, Matt Terry and Matthew Brett; all rights reserved.
36
+
37
+ This product includes software from the Ibis project (Apache 2.0)
38
+ * Copyright (c) 2015 Cloudera, Inc.
39
+ * https://github.com/cloudera/ibis
40
+
41
+ This product includes software from Dremio (Apache 2.0)
42
+ * Copyright (C) 2017-2018 Dremio Corporation
43
+ * https://github.com/dremio/dremio-oss
44
+
45
+ This product includes software from Google Guava (Apache 2.0)
46
+ * Copyright (C) 2007 The Guava Authors
47
+ * https://github.com/google/guava
48
+
49
+ This product include software from CMake (BSD 3-Clause)
50
+ * CMake - Cross Platform Makefile Generator
51
+ * Copyright 2000-2019 Kitware, Inc. and Contributors
52
+
53
+ The web site includes files generated by Jekyll.
54
+
55
+ --------------------------------------------------------------------------------
56
+
57
+ This product includes code from Apache Kudu, which includes the following in
58
+ its NOTICE file:
59
+
60
+ Apache Kudu
61
+ Copyright 2016 The Apache Software Foundation
62
+
63
+ This product includes software developed at
64
+ The Apache Software Foundation (http://www.apache.org/).
65
+
66
+ Portions of this software were developed at
67
+ Cloudera, Inc (http://www.cloudera.com/).
68
+
69
+ --------------------------------------------------------------------------------
70
+
71
+ This product includes code from Apache ORC, which includes the following in
72
+ its NOTICE file:
73
+
74
+ Apache ORC
75
+ Copyright 2013-2019 The Apache Software Foundation
76
+
77
+ This product includes software developed by The Apache Software
78
+ Foundation (http://www.apache.org/).
79
+
80
+ This product includes software developed by Hewlett-Packard:
81
+ (c) Copyright [2014-2015] Hewlett-Packard Development Company, L.P
player/runtime/python/Lib/site-packages/pyarrow.libs/msvcp140-0fa7eb792d3fbcf2233e4ea47e9144b9.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0fa7eb792d3fbcf2233e4ea47e9144b9b1309ba8ed5d4731a72fffa8f4f556d6
3
+ size 557416
player/runtime/python/Lib/site-packages/pyarrow.libs/msvcp140_atomic_wait-aa4e4b3f35a38f595be5cf8631717b66.dll ADDED
Binary file (29.7 kB). View file
 
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/json/reader.h ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <memory>
21
+
22
+ #include "arrow/io/type_fwd.h"
23
+ #include "arrow/json/options.h"
24
+ #include "arrow/record_batch.h"
25
+ #include "arrow/result.h"
26
+ #include "arrow/status.h"
27
+ #include "arrow/util/macros.h"
28
+ #include "arrow/util/type_fwd.h"
29
+ #include "arrow/util/visibility.h"
30
+
31
+ namespace arrow {
32
+ namespace json {
33
+
34
+ /// A class that reads an entire JSON file into a Arrow Table
35
+ ///
36
+ /// The file is expected to consist of individual line-separated JSON objects
37
+ class ARROW_EXPORT TableReader {
38
+ public:
39
+ virtual ~TableReader() = default;
40
+
41
+ /// Read the entire JSON file and convert it to a Arrow Table
42
+ virtual Result<std::shared_ptr<Table>> Read() = 0;
43
+
44
+ /// Create a TableReader instance
45
+ static Result<std::shared_ptr<TableReader>> Make(MemoryPool* pool,
46
+ std::shared_ptr<io::InputStream> input,
47
+ const ReadOptions&,
48
+ const ParseOptions&);
49
+ };
50
+
51
+ ARROW_EXPORT Result<std::shared_ptr<RecordBatch>> ParseOne(ParseOptions options,
52
+ std::shared_ptr<Buffer> json);
53
+
54
+ /// \brief A class that reads a JSON file incrementally
55
+ ///
56
+ /// JSON data is read from a stream in fixed-size blocks (configurable with
57
+ /// `ReadOptions::block_size`). Each block is converted to a `RecordBatch`. Yielded
58
+ /// batches have a consistent schema but may differ in row count.
59
+ ///
60
+ /// The supplied `ParseOptions` are used to determine a schema, based either on a
61
+ /// provided explicit schema or inferred from the first non-empty block.
62
+ /// Afterwards, the target schema is frozen. If `UnexpectedFieldBehavior::InferType` is
63
+ /// specified, unexpected fields will only be inferred for the first block. Afterwards
64
+ /// they'll be treated as errors.
65
+ ///
66
+ /// If `ReadOptions::use_threads` is `true`, each block's parsing/decoding task will be
67
+ /// parallelized on the given `cpu_executor` (with readahead corresponding to the
68
+ /// executor's capacity). If an executor isn't provided, the global thread pool will be
69
+ /// used.
70
+ ///
71
+ /// If `ReadOptions::use_threads` is `false`, computations will be run on the calling
72
+ /// thread and `cpu_executor` will be ignored.
73
+ class ARROW_EXPORT StreamingReader : public RecordBatchReader {
74
+ public:
75
+ virtual ~StreamingReader() = default;
76
+
77
+ /// \brief Read the next `RecordBatch` asynchronously
78
+ /// This function is async-reentrant (but not synchronously reentrant). However, if
79
+ /// threading is disabled, this will block until completion.
80
+ virtual Future<std::shared_ptr<RecordBatch>> ReadNextAsync() = 0;
81
+
82
+ /// Get the number of bytes which have been successfully converted to record batches
83
+ /// and consumed
84
+ [[nodiscard]] virtual int64_t bytes_processed() const = 0;
85
+
86
+ /// \brief Create a `StreamingReader` from an `InputStream`
87
+ /// Blocks until the initial batch is loaded
88
+ ///
89
+ /// \param[in] stream JSON source stream
90
+ /// \param[in] read_options Options for reading
91
+ /// \param[in] parse_options Options for chunking, parsing, and conversion
92
+ /// \param[in] io_context Context for IO operations (optional)
93
+ /// \param[in] cpu_executor Executor for computation tasks (optional)
94
+ /// \return The initialized reader
95
+ static Result<std::shared_ptr<StreamingReader>> Make(
96
+ std::shared_ptr<io::InputStream> stream, const ReadOptions& read_options,
97
+ const ParseOptions& parse_options,
98
+ const io::IOContext& io_context = io::default_io_context(),
99
+ ::arrow::internal::Executor* cpu_executor = NULLPTR);
100
+
101
+ /// \brief Create a `StreamingReader` from an `InputStream` asynchronously
102
+ /// Returned future completes after loading the first batch
103
+ ///
104
+ /// \param[in] stream JSON source stream
105
+ /// \param[in] read_options Options for reading
106
+ /// \param[in] parse_options Options for chunking, parsing, and conversion
107
+ /// \param[in] io_context Context for IO operations (optional)
108
+ /// \param[in] cpu_executor Executor for computation tasks (optional)
109
+ /// \return Future for the initialized reader
110
+ static Future<std::shared_ptr<StreamingReader>> MakeAsync(
111
+ std::shared_ptr<io::InputStream> stream, const ReadOptions& read_options,
112
+ const ParseOptions& parse_options,
113
+ const io::IOContext& io_context = io::default_io_context(),
114
+ ::arrow::internal::Executor* cpu_executor = NULLPTR);
115
+ };
116
+
117
+ } // namespace json
118
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/json/test_common.h ADDED
@@ -0,0 +1,325 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <memory>
21
+ #include <random>
22
+ #include <sstream>
23
+ #include <string>
24
+ #include <string_view>
25
+ #include <utility>
26
+ #include <vector>
27
+
28
+ #include <simdjson.h>
29
+
30
+ #include "arrow/array.h"
31
+ #include "arrow/array/builder_binary.h"
32
+ #include "arrow/io/memory.h"
33
+ #include "arrow/json/converter.h"
34
+ #include "arrow/json/options.h"
35
+ #include "arrow/json/parser.h"
36
+ #include "arrow/result.h"
37
+ #include "arrow/testing/gtest_util.h"
38
+ #include "arrow/testing/random.h"
39
+ #include "arrow/type.h"
40
+ #include "arrow/util/checked_cast.h"
41
+ #include "arrow/util/simdjson_internal.h"
42
+ #include "arrow/visit_type_inline.h"
43
+
44
+ namespace arrow {
45
+
46
+ using internal::checked_cast;
47
+
48
+ namespace json {
49
+
50
+ using std::string_view;
51
+ using Writer = internal::JsonWriter;
52
+
53
+ struct GenerateOptions {
54
+ // Probability of a field being written
55
+ double field_probability = 1.0;
56
+ // Probability of a value being null
57
+ double null_probability = 0.2;
58
+ // Whether to randomize the order of written fields
59
+ bool randomize_field_order = false;
60
+
61
+ static constexpr GenerateOptions Defaults() { return GenerateOptions{}; }
62
+ };
63
+
64
+ inline static Status OK(bool ok) { return ok ? Status::OK() : Status::Invalid(""); }
65
+
66
+ template <typename Engine>
67
+ inline static Status Generate(
68
+ const std::shared_ptr<DataType>& type, Engine& e, Writer* writer,
69
+ const GenerateOptions& options = GenerateOptions::Defaults());
70
+
71
+ template <typename Engine>
72
+ inline static Status Generate(
73
+ const std::vector<std::shared_ptr<Field>>& fields, Engine& e, Writer* writer,
74
+ const GenerateOptions& options = GenerateOptions::Defaults());
75
+
76
+ template <typename Engine>
77
+ inline static Status Generate(
78
+ const std::shared_ptr<Schema>& schm, Engine& e, Writer* writer,
79
+ const GenerateOptions& options = GenerateOptions::Defaults()) {
80
+ return Generate(schm->fields(), e, writer, options);
81
+ }
82
+
83
+ template <typename Engine>
84
+ struct GenerateImpl {
85
+ Status Visit(const NullType&) {
86
+ writer.Null();
87
+ return Status::OK();
88
+ }
89
+
90
+ Status Visit(const BooleanType&) {
91
+ writer.Bool(std::uniform_int_distribution<uint16_t>{}(e) & 1);
92
+ return Status::OK();
93
+ }
94
+
95
+ template <typename T>
96
+ enable_if_physical_unsigned_integer<T, Status> Visit(const T&) {
97
+ auto val = std::uniform_int_distribution<>{}(e);
98
+ writer.Uint64(static_cast<typename T::c_type>(val));
99
+ return Status::OK();
100
+ }
101
+
102
+ template <typename T>
103
+ enable_if_physical_signed_integer<T, Status> Visit(const T&) {
104
+ auto val = std::uniform_int_distribution<>{}(e);
105
+ writer.Int64(static_cast<typename T::c_type>(val));
106
+ return Status::OK();
107
+ }
108
+
109
+ template <typename T>
110
+ enable_if_physical_floating_point<T, Status> Visit(const T&) {
111
+ auto val = std::normal_distribution<typename T::c_type>{0, 1 << 10}(e);
112
+ writer.Double(val);
113
+ return Status::OK();
114
+ }
115
+
116
+ Status GenerateUtf8(const DataType&) {
117
+ auto num_codepoints = std::poisson_distribution<>{4}(e);
118
+ auto seed = std::uniform_int_distribution<uint32_t>{}(e);
119
+ std::string s = RandomUtf8String(seed, num_codepoints);
120
+ writer.String(s);
121
+ return Status::OK();
122
+ }
123
+
124
+ template <typename T>
125
+ enable_if_base_binary<T, Status> Visit(const T& t) {
126
+ return GenerateUtf8(t);
127
+ }
128
+
129
+ Status Visit(const BinaryViewType& t) { return GenerateUtf8(t); }
130
+
131
+ template <typename T>
132
+ enable_if_list_like<T, Status> Visit(const T& t) {
133
+ auto size = std::poisson_distribution<>{4}(e);
134
+ writer.StartArray();
135
+ for (int i = 0; i < size; ++i) {
136
+ RETURN_NOT_OK(Generate(t.value_type(), e, &writer, options));
137
+ }
138
+ writer.EndArray();
139
+ return Status::OK();
140
+ }
141
+
142
+ Status Visit(const ListViewType& t) { return NotImplemented(t); }
143
+
144
+ Status Visit(const LargeListViewType& t) { return NotImplemented(t); }
145
+
146
+ Status Visit(const StructType& t) { return Generate(t.fields(), e, &writer, options); }
147
+
148
+ Status Visit(const DayTimeIntervalType& t) { return NotImplemented(t); }
149
+
150
+ Status Visit(const MonthDayNanoIntervalType& t) { return NotImplemented(t); }
151
+
152
+ Status Visit(const DictionaryType& t) { return NotImplemented(t); }
153
+
154
+ Status Visit(const ExtensionType& t) { return NotImplemented(t); }
155
+
156
+ Status Visit(const Decimal128Type& t) { return NotImplemented(t); }
157
+
158
+ Status Visit(const FixedSizeBinaryType& t) { return NotImplemented(t); }
159
+
160
+ Status Visit(const UnionType& t) { return NotImplemented(t); }
161
+
162
+ Status Visit(const RunEndEncodedType& t) { return NotImplemented(t); }
163
+
164
+ Status NotImplemented(const DataType& t) {
165
+ return Status::NotImplemented("random generation of arrays of type ", t);
166
+ }
167
+
168
+ Engine& e;
169
+ Writer& writer;
170
+ const GenerateOptions& options;
171
+ };
172
+
173
+ template <typename Engine>
174
+ inline static Status Generate(const std::shared_ptr<DataType>& type, Engine& e,
175
+ Writer* writer, const GenerateOptions& options) {
176
+ if (std::bernoulli_distribution(options.null_probability)(e)) {
177
+ writer->Null();
178
+ return Status::OK();
179
+ }
180
+ GenerateImpl<Engine> visitor = {e, *writer, options};
181
+ return VisitTypeInline(*type, &visitor);
182
+ }
183
+
184
+ template <typename Engine>
185
+ inline static Status Generate(const std::vector<std::shared_ptr<Field>>& fields,
186
+ Engine& e, Writer* writer, const GenerateOptions& options) {
187
+ writer->StartObject();
188
+ auto write_field = [&](const Field& f) {
189
+ writer->Key(f.name());
190
+ return Generate(f.type(), e, writer, options);
191
+ };
192
+
193
+ std::bernoulli_distribution bool_dist(options.field_probability);
194
+ if (options.randomize_field_order) {
195
+ std::vector<size_t> indices;
196
+ indices.reserve(static_cast<size_t>(fields.size() * options.field_probability));
197
+ for (size_t i = 0; i < fields.size(); ++i) {
198
+ if (bool_dist(e)) {
199
+ indices.push_back(i);
200
+ }
201
+ }
202
+ std::shuffle(indices.begin(), indices.end(), e);
203
+ for (auto i : indices) {
204
+ RETURN_NOT_OK(write_field(*fields[i]));
205
+ }
206
+ } else {
207
+ for (const auto& f : fields) {
208
+ if (bool_dist(e)) {
209
+ RETURN_NOT_OK(write_field(*f));
210
+ }
211
+ }
212
+ }
213
+
214
+ writer->EndObject();
215
+ return Status::OK();
216
+ }
217
+
218
+ inline static Status MakeStream(string_view src_str,
219
+ std::shared_ptr<io::InputStream>* out) {
220
+ auto src = std::make_shared<Buffer>(src_str);
221
+ *out = std::make_shared<io::BufferReader>(src);
222
+ return Status::OK();
223
+ }
224
+
225
+ // scalar values (numbers and strings) are parsed into a
226
+ // dictionary<index:int32, value:string>. This can be decoded for ease of comparison
227
+ inline static Status DecodeStringDictionary(const DictionaryArray& dict_array,
228
+ std::shared_ptr<Array>* decoded) {
229
+ const StringArray& dict = checked_cast<const StringArray&>(*dict_array.dictionary());
230
+ const Int32Array& indices = checked_cast<const Int32Array&>(*dict_array.indices());
231
+ StringBuilder builder;
232
+ RETURN_NOT_OK(builder.Resize(indices.length()));
233
+ for (int64_t i = 0; i < indices.length(); ++i) {
234
+ if (indices.IsNull(i)) {
235
+ builder.UnsafeAppendNull();
236
+ continue;
237
+ }
238
+ auto value = dict.GetView(indices.GetView(i));
239
+ RETURN_NOT_OK(builder.ReserveData(value.size()));
240
+ builder.UnsafeAppend(value);
241
+ }
242
+ return builder.Finish(decoded);
243
+ }
244
+
245
+ inline static Status ParseFromString(ParseOptions options, string_view src_str,
246
+ std::shared_ptr<Array>* parsed) {
247
+ auto src = std::make_shared<Buffer>(src_str);
248
+ std::unique_ptr<BlockParser> parser;
249
+ RETURN_NOT_OK(BlockParser::Make(options, &parser));
250
+ RETURN_NOT_OK(parser->Parse(src));
251
+ return parser->Finish(parsed);
252
+ }
253
+
254
+ inline static Status ParseFromString(ParseOptions options, string_view src_str,
255
+ std::shared_ptr<StructArray>* parsed) {
256
+ std::shared_ptr<Array> parsed_non_struct;
257
+ RETURN_NOT_OK(ParseFromString(options, src_str, &parsed_non_struct));
258
+ *parsed = internal::checked_pointer_cast<StructArray>(parsed_non_struct);
259
+ return Status::OK();
260
+ }
261
+
262
+ static inline std::string PrettyPrint(std::string_view one_line) {
263
+ return simdjson::fractured_json_string(one_line);
264
+ }
265
+
266
+ template <typename T>
267
+ std::string RowsOfOneColumn(std::string_view name, std::initializer_list<T> values,
268
+ decltype(std::to_string(*values.begin()))* = nullptr) {
269
+ std::stringstream ss;
270
+ for (auto value : values) {
271
+ ss << R"({")" << name << R"(":)" << std::to_string(value) << "}\n";
272
+ }
273
+ return ss.str();
274
+ }
275
+
276
+ inline std::string RowsOfOneColumn(std::string_view name,
277
+ std::initializer_list<std::string> values) {
278
+ std::stringstream ss;
279
+ for (auto value : values) {
280
+ ss << R"({")" << name << R"(":)" << value << "}\n";
281
+ }
282
+ return ss.str();
283
+ }
284
+
285
+ inline static std::string scalars_only_src() {
286
+ return R"(
287
+ { "hello": 3.5, "world": false, "yo": "thing" }
288
+ { "hello": 3.25, "world": null }
289
+ { "hello": 3.125, "world": null, "yo": "\u5fcd" }
290
+ { "hello": 0.0, "world": true, "yo": null }
291
+ )";
292
+ }
293
+
294
+ inline static std::string nested_src() {
295
+ return R"(
296
+ { "hello": 3.5, "world": false, "yo": "thing", "arr": [1, 2, 3], "nuf": {} }
297
+ { "hello": 3.25, "world": null, "arr": [2], "nuf": null }
298
+ { "hello": 3.125, "world": null, "yo": "\u5fcd", "arr": [], "nuf": { "ps": 78 } }
299
+ { "hello": 0.0, "world": true, "yo": null, "arr": null, "nuf": { "ps": 90 } }
300
+ )";
301
+ }
302
+
303
+ inline static std::string null_src() {
304
+ return R"(
305
+ { "plain": null, "list1": [], "list2": [], "struct": { "plain": null } }
306
+ { "plain": null, "list1": [], "list2": [null], "struct": {} }
307
+ )";
308
+ }
309
+
310
+ inline static std::string unquoted_decimal_src() {
311
+ return R"(
312
+ { "price": 30.04, "cost":30.001 }
313
+ { "price": 1.23, "cost":1.229 }
314
+ )";
315
+ }
316
+
317
+ inline static std::string mixed_decimal_src() {
318
+ return R"(
319
+ { "price": 30.04, "cost": 30.001 }
320
+ { "price": "1.23", "cost": "1.229" }
321
+ )";
322
+ }
323
+
324
+ } // namespace json
325
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/json/type_fwd.h ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ namespace arrow {
19
+ namespace json {
20
+
21
+ class TableReader;
22
+ struct ReadOptions;
23
+ struct ParseOptions;
24
+
25
+ } // namespace json
26
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/memory_pool.h ADDED
@@ -0,0 +1,348 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <atomic>
21
+ #include <cstdint>
22
+ #include <functional>
23
+ #include <memory>
24
+ #include <string>
25
+
26
+ #include "arrow/result.h"
27
+ #include "arrow/status.h"
28
+ #include "arrow/type_fwd.h"
29
+ #include "arrow/util/macros.h"
30
+ #include "arrow/util/visibility.h"
31
+
32
+ namespace arrow {
33
+
34
+ namespace internal {
35
+
36
+ ///////////////////////////////////////////////////////////////////////
37
+ // Helper tracking memory statistics
38
+
39
+ /// \brief Memory pool statistics
40
+ ///
41
+ /// 64-byte aligned so that all atomic values are on the same cache line.
42
+ class alignas(64) MemoryPoolStats {
43
+ private:
44
+ // All atomics are updated according to Acquire-Release ordering.
45
+ // https://en.cppreference.com/w/cpp/atomic/memory_order#Release-Acquire_ordering
46
+ //
47
+ // max_memory_, total_allocated_bytes_, and num_allocs_ only go up (they are
48
+ // monotonically increasing) which can allow some optimizations.
49
+ std::atomic<int64_t> max_memory_{0};
50
+ std::atomic<int64_t> bytes_allocated_{0};
51
+ std::atomic<int64_t> total_allocated_bytes_{0};
52
+ std::atomic<int64_t> num_allocs_{0};
53
+
54
+ public:
55
+ int64_t max_memory() const { return max_memory_.load(std::memory_order_acquire); }
56
+
57
+ int64_t bytes_allocated() const {
58
+ return bytes_allocated_.load(std::memory_order_acquire);
59
+ }
60
+
61
+ int64_t total_bytes_allocated() const {
62
+ return total_allocated_bytes_.load(std::memory_order_acquire);
63
+ }
64
+
65
+ int64_t num_allocations() const { return num_allocs_.load(std::memory_order_acquire); }
66
+
67
+ inline void DidAllocateBytes(int64_t size) {
68
+ // Issue the load before everything else. max_memory_ is monotonically increasing,
69
+ // so we can use a relaxed load before the read-modify-write.
70
+ auto max_memory = max_memory_.load(std::memory_order_relaxed);
71
+ const auto old_bytes_allocated =
72
+ bytes_allocated_.fetch_add(size, std::memory_order_acq_rel);
73
+ // Issue store operations on values that we don't depend on to proceed
74
+ // with execution. When done, max_memory and old_bytes_allocated have
75
+ // a higher chance of being available on CPU registers. This also has the
76
+ // nice side-effect of putting 3 atomic stores close to each other in the
77
+ // instruction stream.
78
+ total_allocated_bytes_.fetch_add(size, std::memory_order_acq_rel);
79
+ num_allocs_.fetch_add(1, std::memory_order_acq_rel);
80
+
81
+ // If other threads are updating max_memory_ concurrently we leave the loop without
82
+ // updating knowing that it already reached a value even higher than ours.
83
+ const auto allocated = old_bytes_allocated + size;
84
+ while (max_memory < allocated && !max_memory_.compare_exchange_weak(
85
+ /*expected=*/max_memory, /*desired=*/allocated,
86
+ std::memory_order_acq_rel)) {
87
+ }
88
+ }
89
+
90
+ inline void DidReallocateBytes(int64_t old_size, int64_t new_size) {
91
+ if (new_size > old_size) {
92
+ DidAllocateBytes(new_size - old_size);
93
+ } else {
94
+ DidFreeBytes(old_size - new_size);
95
+ }
96
+ }
97
+
98
+ inline void DidFreeBytes(int64_t size) {
99
+ bytes_allocated_.fetch_sub(size, std::memory_order_acq_rel);
100
+ }
101
+ };
102
+
103
+ } // namespace internal
104
+
105
+ /// Base class for memory allocation on the CPU.
106
+ ///
107
+ /// Besides tracking the number of allocated bytes, the allocator also should
108
+ /// take care of the required 64-byte alignment.
109
+ class ARROW_EXPORT MemoryPool {
110
+ public:
111
+ virtual ~MemoryPool() = default;
112
+
113
+ /// \brief EXPERIMENTAL. Create a new instance of the default MemoryPool
114
+ static std::unique_ptr<MemoryPool> CreateDefault();
115
+
116
+ /// Allocate a new memory region of at least size bytes.
117
+ ///
118
+ /// The allocated region shall be 64-byte aligned.
119
+ Status Allocate(int64_t size, uint8_t** out) {
120
+ return Allocate(size, kDefaultBufferAlignment, out);
121
+ }
122
+
123
+ /// Allocate a new memory region of at least size bytes aligned to alignment.
124
+ virtual Status Allocate(int64_t size, int64_t alignment, uint8_t** out) = 0;
125
+
126
+ /// Resize an already allocated memory section.
127
+ ///
128
+ /// As by default most default allocators on a platform don't support aligned
129
+ /// reallocation, this function can involve a copy of the underlying data.
130
+ virtual Status Reallocate(int64_t old_size, int64_t new_size, int64_t alignment,
131
+ uint8_t** ptr) = 0;
132
+ Status Reallocate(int64_t old_size, int64_t new_size, uint8_t** ptr) {
133
+ return Reallocate(old_size, new_size, kDefaultBufferAlignment, ptr);
134
+ }
135
+
136
+ /// Free an allocated region.
137
+ ///
138
+ /// @param buffer Pointer to the start of the allocated memory region
139
+ /// @param size Allocated size located at buffer. An allocator implementation
140
+ /// may use this for tracking the amount of allocated bytes as well as for
141
+ /// faster deallocation if supported by its backend.
142
+ /// @param alignment The alignment of the allocation. Defaults to 64 bytes.
143
+ virtual void Free(uint8_t* buffer, int64_t size, int64_t alignment) = 0;
144
+ void Free(uint8_t* buffer, int64_t size) {
145
+ Free(buffer, size, kDefaultBufferAlignment);
146
+ }
147
+
148
+ /// Return unused memory to the OS
149
+ ///
150
+ /// Only applies to allocators that hold onto unused memory. This will be
151
+ /// best effort, a memory pool may not implement this feature or may be
152
+ /// unable to fulfill the request due to fragmentation.
153
+ virtual void ReleaseUnused() {}
154
+
155
+ /// Print statistics
156
+ ///
157
+ /// Print allocation statistics on stderr. The output format is
158
+ /// implementation-specific. Not all memory pools implement this method.
159
+ virtual void PrintStats() {}
160
+
161
+ /// The number of bytes that were allocated and not yet free'd through
162
+ /// this allocator.
163
+ virtual int64_t bytes_allocated() const = 0;
164
+
165
+ /// Return peak memory allocation in this memory pool
166
+ ///
167
+ /// \return Maximum bytes allocated. If not known (or not implemented),
168
+ /// returns -1
169
+ virtual int64_t max_memory() const;
170
+
171
+ /// The number of bytes that were allocated.
172
+ virtual int64_t total_bytes_allocated() const = 0;
173
+
174
+ /// The number of allocations or reallocations that were requested.
175
+ virtual int64_t num_allocations() const = 0;
176
+
177
+ /// The name of the backend used by this MemoryPool (e.g. "system" or "jemalloc").
178
+ virtual std::string backend_name() const = 0;
179
+
180
+ protected:
181
+ MemoryPool() = default;
182
+ };
183
+
184
+ class ARROW_EXPORT LoggingMemoryPool : public MemoryPool {
185
+ public:
186
+ explicit LoggingMemoryPool(MemoryPool* pool);
187
+ ~LoggingMemoryPool() override = default;
188
+
189
+ using MemoryPool::Allocate;
190
+ using MemoryPool::Free;
191
+ using MemoryPool::Reallocate;
192
+
193
+ Status Allocate(int64_t size, int64_t alignment, uint8_t** out) override;
194
+ Status Reallocate(int64_t old_size, int64_t new_size, int64_t alignment,
195
+ uint8_t** ptr) override;
196
+ void Free(uint8_t* buffer, int64_t size, int64_t alignment) override;
197
+ void ReleaseUnused() override;
198
+ void PrintStats() override;
199
+
200
+ int64_t bytes_allocated() const override;
201
+
202
+ int64_t max_memory() const override;
203
+
204
+ int64_t total_bytes_allocated() const override;
205
+
206
+ int64_t num_allocations() const override;
207
+
208
+ std::string backend_name() const override;
209
+
210
+ private:
211
+ MemoryPool* pool_;
212
+ };
213
+
214
+ /// Derived class for memory allocation.
215
+ ///
216
+ /// Tracks the number of bytes and maximum memory allocated through its direct
217
+ /// calls. Actual allocation is delegated to MemoryPool class.
218
+ class ARROW_EXPORT ProxyMemoryPool : public MemoryPool {
219
+ public:
220
+ explicit ProxyMemoryPool(MemoryPool* pool);
221
+ ~ProxyMemoryPool() override;
222
+
223
+ using MemoryPool::Allocate;
224
+ using MemoryPool::Free;
225
+ using MemoryPool::Reallocate;
226
+
227
+ Status Allocate(int64_t size, int64_t alignment, uint8_t** out) override;
228
+ Status Reallocate(int64_t old_size, int64_t new_size, int64_t alignment,
229
+ uint8_t** ptr) override;
230
+ void Free(uint8_t* buffer, int64_t size, int64_t alignment) override;
231
+ void ReleaseUnused() override;
232
+ void PrintStats() override;
233
+
234
+ int64_t bytes_allocated() const override;
235
+
236
+ int64_t max_memory() const override;
237
+
238
+ int64_t total_bytes_allocated() const override;
239
+
240
+ int64_t num_allocations() const override;
241
+
242
+ std::string backend_name() const override;
243
+
244
+ private:
245
+ class ProxyMemoryPoolImpl;
246
+ std::unique_ptr<ProxyMemoryPoolImpl> impl_;
247
+ };
248
+
249
+ /// EXPERIMENTAL MemoryPool wrapper with an upper limit
250
+ ///
251
+ /// Checking for limits is not done in a fully thread-safe way, therefore
252
+ /// multi-threaded allocations might be able to go successfully above the
253
+ /// configured limit.
254
+ class ARROW_EXPORT CappedMemoryPool : public MemoryPool {
255
+ public:
256
+ CappedMemoryPool(MemoryPool* wrapped_pool, int64_t bytes_allocated_limit)
257
+ : wrapped_(wrapped_pool), bytes_allocated_limit_(bytes_allocated_limit) {}
258
+
259
+ using MemoryPool::Allocate;
260
+ using MemoryPool::Reallocate;
261
+
262
+ Status Allocate(int64_t size, int64_t alignment, uint8_t** out) override;
263
+ Status Reallocate(int64_t old_size, int64_t new_size, int64_t alignment,
264
+ uint8_t** ptr) override;
265
+ void Free(uint8_t* buffer, int64_t size, int64_t alignment) override;
266
+
267
+ void ReleaseUnused() override { wrapped_->ReleaseUnused(); }
268
+
269
+ void PrintStats() override { wrapped_->PrintStats(); }
270
+
271
+ int64_t bytes_allocated() const override { return wrapped_->bytes_allocated(); }
272
+
273
+ int64_t max_memory() const override { return wrapped_->max_memory(); }
274
+
275
+ int64_t total_bytes_allocated() const override {
276
+ return wrapped_->total_bytes_allocated();
277
+ }
278
+
279
+ int64_t num_allocations() const override { return wrapped_->num_allocations(); }
280
+
281
+ std::string backend_name() const override { return wrapped_->backend_name(); }
282
+
283
+ private:
284
+ Status OutOfMemory(int64_t current_allocated, int64_t requested) const;
285
+
286
+ MemoryPool* wrapped_;
287
+ const int64_t bytes_allocated_limit_;
288
+ };
289
+
290
+ /// \brief Return a process-wide memory pool based on the system allocator.
291
+ ARROW_EXPORT MemoryPool* system_memory_pool();
292
+
293
+ /// \brief Return a process-wide memory pool based on jemalloc.
294
+ ///
295
+ /// May return NotImplemented if jemalloc is not available.
296
+ ARROW_EXPORT Status jemalloc_memory_pool(MemoryPool** out);
297
+
298
+ /// \brief Set jemalloc memory page purging behavior for future-created arenas
299
+ /// to the indicated number of milliseconds. See dirty_decay_ms and
300
+ /// muzzy_decay_ms options in jemalloc for a description of what these do. The
301
+ /// default is configured to 1000 (1 second) which releases memory more
302
+ /// aggressively to the operating system than the jemalloc default of 10
303
+ /// seconds. If you set the value to 0, dirty / muzzy pages will be released
304
+ /// immediately rather than with a time decay, but this may reduce application
305
+ /// performance.
306
+ ARROW_EXPORT
307
+ Status jemalloc_set_decay_ms(int ms);
308
+
309
+ /// \brief Get basic statistics from jemalloc's mallctl.
310
+ /// See the MALLCTL NAMESPACE section in jemalloc project documentation for
311
+ /// available stats.
312
+ ARROW_EXPORT
313
+ Result<int64_t> jemalloc_get_stat(const char* name);
314
+
315
+ /// \brief Reset the counter for peak bytes allocated in the calling thread to zero.
316
+ /// This affects subsequent calls to thread.peak.read, but not the values returned by
317
+ /// thread.allocated or thread.deallocated.
318
+ ARROW_EXPORT
319
+ Status jemalloc_peak_reset();
320
+
321
+ /// \brief Print summary statistics in human-readable form to stderr.
322
+ /// See malloc_stats_print documentation in jemalloc project documentation for
323
+ /// available opt flags.
324
+ ARROW_EXPORT
325
+ Status jemalloc_stats_print(const char* opts = "");
326
+
327
+ /// \brief Print summary statistics in human-readable form using a callback
328
+ /// See malloc_stats_print documentation in jemalloc project documentation for
329
+ /// available opt flags.
330
+ ARROW_EXPORT
331
+ Status jemalloc_stats_print(std::function<void(const char*)> write_cb,
332
+ const char* opts = "");
333
+
334
+ /// \brief Get summary statistics in human-readable form.
335
+ /// See malloc_stats_print documentation in jemalloc project documentation for
336
+ /// available opt flags.
337
+ ARROW_EXPORT
338
+ Result<std::string> jemalloc_stats_string(const char* opts = "");
339
+
340
+ /// \brief Return a process-wide memory pool based on mimalloc.
341
+ ///
342
+ /// May return NotImplemented if mimalloc is not available.
343
+ ARROW_EXPORT Status mimalloc_memory_pool(MemoryPool** out);
344
+
345
+ /// \brief Return the names of the backends supported by this Arrow build.
346
+ ARROW_EXPORT std::vector<std::string> SupportedMemoryBackendNames();
347
+
348
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/memory_pool_test.h ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <algorithm>
21
+ #include <cstddef>
22
+ #include <cstdint>
23
+ #include <limits>
24
+
25
+ #include <gtest/gtest.h>
26
+
27
+ #include "arrow/memory_pool.h"
28
+ #include "arrow/status.h"
29
+ #include "arrow/testing/gtest_util.h"
30
+
31
+ namespace arrow {
32
+
33
+ class TestMemoryPoolBase : public ::testing::Test {
34
+ public:
35
+ virtual ::arrow::MemoryPool* memory_pool() = 0;
36
+
37
+ void TestMemoryTracking() {
38
+ auto pool = memory_pool();
39
+
40
+ uint8_t* data;
41
+ const auto old_bytes_allocated = pool->bytes_allocated();
42
+ ASSERT_OK(pool->Allocate(100, &data));
43
+ EXPECT_EQ(static_cast<uint64_t>(0), reinterpret_cast<uint64_t>(data) % 64);
44
+ ASSERT_EQ(old_bytes_allocated + 100, pool->bytes_allocated());
45
+
46
+ uint8_t* data2;
47
+ ASSERT_OK(pool->Allocate(27, &data2));
48
+ EXPECT_EQ(static_cast<uint64_t>(0), reinterpret_cast<uint64_t>(data2) % 64);
49
+ ASSERT_EQ(old_bytes_allocated + 127, pool->bytes_allocated());
50
+
51
+ pool->Free(data, 100);
52
+ ASSERT_EQ(old_bytes_allocated + 27, pool->bytes_allocated());
53
+ pool->Free(data2, 27);
54
+ ASSERT_EQ(old_bytes_allocated, pool->bytes_allocated());
55
+ }
56
+
57
+ void TestOOM() {
58
+ auto pool = memory_pool();
59
+
60
+ uint8_t* data;
61
+ int64_t max_alloc = std::min<uint64_t>(std::numeric_limits<int64_t>::max(),
62
+ std::numeric_limits<size_t>::max());
63
+ // subtract 63 to prevent overflow after the size is aligned
64
+ for (int64_t to_alloc : {max_alloc, max_alloc - 63, max_alloc - 127}) {
65
+ ASSERT_RAISES(OutOfMemory, pool->Allocate(to_alloc, &data));
66
+ }
67
+ }
68
+
69
+ void TestReallocate() {
70
+ auto pool = memory_pool();
71
+
72
+ uint8_t* data;
73
+ ASSERT_OK(pool->Allocate(10, &data));
74
+ ASSERT_EQ(10, pool->bytes_allocated());
75
+ data[0] = 35;
76
+ data[9] = 12;
77
+
78
+ // Expand
79
+ ASSERT_OK(pool->Reallocate(10, 20, &data));
80
+ ASSERT_EQ(data[9], 12);
81
+ ASSERT_EQ(20, pool->bytes_allocated());
82
+
83
+ // Shrink
84
+ ASSERT_OK(pool->Reallocate(20, 5, &data));
85
+ ASSERT_EQ(data[0], 35);
86
+ ASSERT_EQ(5, pool->bytes_allocated());
87
+
88
+ // Free
89
+ pool->Free(data, 5);
90
+ ASSERT_EQ(0, pool->bytes_allocated());
91
+ }
92
+
93
+ void TestAlignment() {
94
+ auto pool = memory_pool();
95
+ {
96
+ uint8_t* data64;
97
+ ASSERT_OK(pool->Allocate(10, &data64));
98
+ ASSERT_EQ(reinterpret_cast<uintptr_t>(data64) % kDefaultBufferAlignment, 0);
99
+ pool->Free(data64, 10);
100
+ }
101
+
102
+ {
103
+ uint8_t* data512;
104
+ ASSERT_OK(pool->Allocate(10, 512, &data512));
105
+ ASSERT_EQ(reinterpret_cast<uintptr_t>(data512) % 512, 0);
106
+ pool->Free(data512, 10, 512);
107
+ }
108
+ }
109
+
110
+ void TestReleaseUnused() {
111
+ auto pool = memory_pool();
112
+ const int64_t nbytes = pool->bytes_allocated();
113
+ pool->ReleaseUnused();
114
+ // Unfortunately there's not much that we can assert here
115
+ ASSERT_EQ(nbytes, pool->bytes_allocated());
116
+ }
117
+ };
118
+
119
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/pretty_print.h ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <iosfwd>
21
+ #include <string>
22
+ #include <utility>
23
+
24
+ #include "arrow/util/visibility.h"
25
+
26
+ namespace arrow {
27
+
28
+ class Array;
29
+ class ChunkedArray;
30
+ class RecordBatch;
31
+ class Schema;
32
+ class Status;
33
+ class Table;
34
+
35
+ /// \class PrettyPrintDelimiters
36
+ /// \brief Options for controlling which delimiters to use when printing
37
+ /// an Array or ChunkedArray.
38
+ struct ARROW_EXPORT PrettyPrintDelimiters {
39
+ /// Delimiter to use when opening an Array or ChunkedArray (e.g. "[")
40
+ std::string open = "[";
41
+
42
+ /// Delimiter to use when closing an Array or ChunkedArray (e.g. "]")
43
+ std::string close = "]";
44
+
45
+ /// Delimiter for separating individual elements of an Array (e.g. ","),
46
+ /// or individual chunks of a ChunkedArray
47
+ std::string element = ",";
48
+
49
+ /// Create a PrettyPrintDelimiters instance with default values
50
+ static PrettyPrintDelimiters Defaults() { return PrettyPrintDelimiters(); }
51
+ };
52
+
53
+ /// \class PrettyPrintOptions
54
+ /// \brief Options for controlling how various Arrow types should be printed.
55
+ struct ARROW_EXPORT PrettyPrintOptions {
56
+ PrettyPrintOptions() = default;
57
+
58
+ PrettyPrintOptions(int indent, // NOLINT runtime/explicit
59
+ int window = 10, int indent_size = 2, std::string null_rep = "null",
60
+ bool skip_new_lines = false, bool truncate_metadata = true,
61
+ int container_window = 2, int element_size_limit = 100)
62
+ : indent(indent),
63
+ indent_size(indent_size),
64
+ window(window),
65
+ container_window(container_window),
66
+ null_rep(std::move(null_rep)),
67
+ skip_new_lines(skip_new_lines),
68
+ truncate_metadata(truncate_metadata),
69
+ element_size_limit(element_size_limit) {}
70
+
71
+ /// Create a PrettyPrintOptions instance with default values
72
+ static PrettyPrintOptions Defaults() { return PrettyPrintOptions(); }
73
+
74
+ /// Number of spaces to shift entire formatted object to the right
75
+ int indent = 0;
76
+
77
+ /// Size of internal indents
78
+ int indent_size = 2;
79
+
80
+ /// Maximum number of elements to show at the beginning and at the end.
81
+ int window = 10;
82
+
83
+ /// Maximum number of elements to show at the beginning and at the end, for elements
84
+ /// that are containers (that is, list in ListArray and chunks in ChunkedArray)
85
+ int container_window = 2;
86
+
87
+ /// String to use for representing a null value, defaults to "null"
88
+ std::string null_rep = "null";
89
+
90
+ /// Skip new lines between elements, defaults to false
91
+ bool skip_new_lines = false;
92
+
93
+ /// Limit display of each KeyValueMetadata key/value pair to a single line at
94
+ /// 80 character width
95
+ bool truncate_metadata = true;
96
+
97
+ /// If true, display field metadata when pretty-printing a Schema
98
+ bool show_field_metadata = true;
99
+
100
+ /// If true, display schema metadata when pretty-printing a Schema
101
+ bool show_schema_metadata = true;
102
+
103
+ /// Limit each element to specified number of characters, defaults to 100
104
+ int element_size_limit = 100;
105
+
106
+ /// Delimiters to use when printing an Array
107
+ PrettyPrintDelimiters array_delimiters = PrettyPrintDelimiters::Defaults();
108
+
109
+ /// Delimiters to use when printing a ChunkedArray
110
+ PrettyPrintDelimiters chunked_array_delimiters = PrettyPrintDelimiters::Defaults();
111
+ };
112
+
113
+ /// \brief Print human-readable representation of RecordBatch
114
+ ARROW_EXPORT
115
+ Status PrettyPrint(const RecordBatch& batch, int indent, std::ostream* sink);
116
+
117
+ ARROW_EXPORT
118
+ Status PrettyPrint(const RecordBatch& batch, const PrettyPrintOptions& options,
119
+ std::ostream* sink);
120
+
121
+ /// \brief Print human-readable representation of Table
122
+ ARROW_EXPORT
123
+ Status PrettyPrint(const Table& table, const PrettyPrintOptions& options,
124
+ std::ostream* sink);
125
+
126
+ /// \brief Print human-readable representation of Array
127
+ ARROW_EXPORT
128
+ Status PrettyPrint(const Array& arr, int indent, std::ostream* sink);
129
+
130
+ /// \brief Print human-readable representation of Array
131
+ ARROW_EXPORT
132
+ Status PrettyPrint(const Array& arr, const PrettyPrintOptions& options,
133
+ std::ostream* sink);
134
+
135
+ /// \brief Print human-readable representation of Array
136
+ ARROW_EXPORT
137
+ Status PrettyPrint(const Array& arr, const PrettyPrintOptions& options,
138
+ std::string* result);
139
+
140
+ /// \brief Print human-readable representation of ChunkedArray
141
+ ARROW_EXPORT
142
+ Status PrettyPrint(const ChunkedArray& chunked_arr, const PrettyPrintOptions& options,
143
+ std::ostream* sink);
144
+
145
+ /// \brief Print human-readable representation of ChunkedArray
146
+ ARROW_EXPORT
147
+ Status PrettyPrint(const ChunkedArray& chunked_arr, const PrettyPrintOptions& options,
148
+ std::string* result);
149
+
150
+ ARROW_EXPORT
151
+ Status PrettyPrint(const Schema& schema, const PrettyPrintOptions& options,
152
+ std::ostream* sink);
153
+
154
+ ARROW_EXPORT
155
+ Status PrettyPrint(const Schema& schema, const PrettyPrintOptions& options,
156
+ std::string* result);
157
+
158
+ ARROW_EXPORT
159
+ Status DebugPrint(const Array& arr, int indent);
160
+
161
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/api.h ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/python/arrow_to_pandas.h"
21
+ #include "arrow/python/common.h"
22
+ #include "arrow/python/datetime.h"
23
+ #include "arrow/python/helpers.h"
24
+ #include "arrow/python/inference.h"
25
+ #include "arrow/python/io.h"
26
+ #include "arrow/python/numpy_convert.h"
27
+ #include "arrow/python/numpy_to_arrow.h"
28
+ #include "arrow/python/python_to_arrow.h"
29
+ #include "arrow/python/util.h"
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/arrow_to_pandas.h ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // Functions for converting between pandas's NumPy-based data representation
19
+ // and Arrow data structures
20
+
21
+ #pragma once
22
+
23
+ #include "arrow/python/platform.h"
24
+
25
+ #include <memory>
26
+ #include <string>
27
+ #include <unordered_set>
28
+
29
+ #include "arrow/memory_pool.h"
30
+ #include "arrow/python/visibility.h"
31
+
32
+ namespace arrow {
33
+
34
+ class Array;
35
+ class ChunkedArray;
36
+ class Column;
37
+ class DataType;
38
+ class MemoryPool;
39
+ class Status;
40
+ class Table;
41
+
42
+ namespace py {
43
+
44
+ enum class MapConversionType {
45
+ DEFAULT, // convert arrow maps to assoc lists (list of kev-value tuples) in Pandas
46
+ LOSSY, // report warnings when lossiness is encountered due to duplicate keys
47
+ STRICT_, // raise a Python exception when lossiness is encountered due to duplicate
48
+ // keys
49
+ };
50
+
51
+ struct PandasOptions {
52
+ bool HasCategoricalColumns() const {
53
+ return categorical_columns && !categorical_columns->empty();
54
+ }
55
+
56
+ bool IsCategoricalColumn(const std::string& name) const {
57
+ return categorical_columns && categorical_columns->count(name);
58
+ }
59
+
60
+ bool HasExtensionColumns() const {
61
+ return extension_columns && !extension_columns->empty();
62
+ }
63
+
64
+ bool IsExtensionColumn(const std::string& name) const {
65
+ return extension_columns && extension_columns->count(name);
66
+ }
67
+
68
+ /// arrow::MemoryPool to use for memory allocations
69
+ MemoryPool* pool = default_memory_pool();
70
+
71
+ /// If true, we will convert all string columns to categoricals
72
+ bool strings_to_categorical = false;
73
+ bool zero_copy_only = false;
74
+ bool integer_object_nulls = false;
75
+ bool date_as_object = false;
76
+ bool timestamp_as_object = false;
77
+ bool use_threads = false;
78
+
79
+ /// Coerce all date and timestamp to datetime64[ns]
80
+ bool coerce_temporal_nanoseconds = false;
81
+
82
+ /// Used to maintain backwards compatibility for
83
+ /// timezone bugs (see ARROW-9528). Should be removed
84
+ /// after Arrow 2.0 release.
85
+ bool ignore_timezone = false;
86
+
87
+ /// \brief If true, do not create duplicate PyObject versions of equal
88
+ /// objects. This only applies to immutable objects like strings or datetime
89
+ /// objects
90
+ bool deduplicate_objects = false;
91
+
92
+ /// \brief For certain data types, a cast is needed in order to store the
93
+ /// data in a pandas DataFrame or Series (e.g. timestamps are always stored
94
+ /// as nanoseconds in pandas). This option controls whether it is a safe
95
+ /// cast or not.
96
+ bool safe_cast = true;
97
+
98
+ /// \brief If true, create one block per column rather than consolidated
99
+ /// blocks (1 per data type). Do zero-copy wrapping when there are no
100
+ /// nulls. pandas currently will consolidate the blocks on its own, causing
101
+ /// increased memory use, so keep this in mind if you are working on a
102
+ /// memory-constrained situation.
103
+ bool split_blocks = false;
104
+
105
+ /// \brief If true, allow non-writable zero-copy views to be created for
106
+ /// single column blocks. This option is also used to provide zero copy for
107
+ /// Series data
108
+ bool allow_zero_copy_blocks = false;
109
+
110
+ /// \brief If true, attempt to deallocate buffers in passed Arrow object if
111
+ /// it is the only remaining shared_ptr copy of it. See ARROW-3789 for
112
+ /// original context for this feature. Only currently implemented for Table
113
+ /// conversions
114
+ bool self_destruct = false;
115
+
116
+ /// \brief The default behavior (DEFAULT), is to convert Arrow Map arrays to
117
+ /// Python association lists (list-of-tuples) in the same order as the Arrow
118
+ /// Map, as in [(key1, value1), (key2, value2), ...]
119
+ /// If LOSSY or STRICT, convert Arrow Map arrays to native Python dicts.
120
+ /// This can change the ordering of (key, value) pairs, and will deduplicate
121
+ /// multiple keys, resulting in a possible loss of data.
122
+ /// If 'lossy', this key deduplication results in a warning printed
123
+ /// when detected. If 'strict', this instead results in an exception
124
+ /// being raised when detected.
125
+ MapConversionType maps_as_pydicts = MapConversionType::DEFAULT;
126
+
127
+ // Used internally for nested arrays.
128
+ bool decode_dictionaries = false;
129
+
130
+ // Columns that should be casted to categorical
131
+ //
132
+ // This is wrapped in a shared_ptr because this struct is copied internally for
133
+ // each column or nested field (see GH-47861).
134
+ std::shared_ptr<const std::unordered_set<std::string>> categorical_columns;
135
+
136
+ // Columns that should be passed through to be converted to
137
+ // ExtensionArray/Block
138
+ std::shared_ptr<const std::unordered_set<std::string>> extension_columns;
139
+
140
+ // Used internally to decipher between to_numpy() and to_pandas() when
141
+ // the expected output differs
142
+ bool to_numpy = false;
143
+ };
144
+
145
+ ARROW_PYTHON_EXPORT
146
+ Status ConvertArrayToPandas(const PandasOptions& options, std::shared_ptr<Array> arr,
147
+ PyObject* py_ref, PyObject** out);
148
+
149
+ ARROW_PYTHON_EXPORT
150
+ Status ConvertChunkedArrayToPandas(const PandasOptions& options,
151
+ std::shared_ptr<ChunkedArray> col, PyObject* py_ref,
152
+ PyObject** out);
153
+
154
+ // Convert a whole table as efficiently as possible to a pandas.DataFrame.
155
+ //
156
+ // The returned Python object is a list of tuples consisting of the exact 2D
157
+ // BlockManager structure of the pandas.DataFrame used as of pandas 0.19.x.
158
+ //
159
+ // tuple item: (indices: ndarray[int32], block: ndarray[TYPE, ndim=2])
160
+ ARROW_PYTHON_EXPORT
161
+ Status ConvertTableToPandas(const PandasOptions& options, std::shared_ptr<Table> table,
162
+ PyObject** out);
163
+
164
+ } // namespace py
165
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/async.h ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <utility>
21
+
22
+ #include "arrow/python/common.h"
23
+ #include "arrow/status.h"
24
+ #include "arrow/util/future.h"
25
+
26
+ namespace arrow::py {
27
+
28
+ /// \brief Bind a Python callback to an arrow::Future.
29
+ ///
30
+ /// If the Future finishes successfully, py_wrapper is called with its
31
+ /// result value and should return a PyObject*. If py_wrapper is successful,
32
+ /// py_cb is called with its return value.
33
+ ///
34
+ /// If either the Future or py_wrapper fails, py_cb is called with the
35
+ /// associated Python exception.
36
+ ///
37
+ /// \param future The future to bind to.
38
+ /// \param py_cb The Python callback function. Will be passed the result of
39
+ /// py_wrapper, or a Python exception if the future failed or one was
40
+ /// raised by py_wrapper.
41
+ /// \param py_wrapper A function (likely defined in Cython) to convert the C++
42
+ /// result of the future to a Python object.
43
+ template <typename T, typename PyWrapper = PyObject* (*)(T)>
44
+ void BindFuture(Future<T> future, PyObject* py_cb, PyWrapper py_wrapper) {
45
+ Py_INCREF(py_cb);
46
+ OwnedRefNoGIL cb_ref(py_cb);
47
+
48
+ auto future_cb = [cb_ref = std::move(cb_ref),
49
+ py_wrapper = std::move(py_wrapper)](Result<T> result) {
50
+ SafeCallIntoPythonVoid([&]() {
51
+ OwnedRef py_value_or_exc{WrapResult(std::move(result), std::move(py_wrapper))};
52
+ Py_XDECREF(
53
+ PyObject_CallFunctionObjArgs(cb_ref.obj(), py_value_or_exc.obj(), NULLPTR));
54
+ ARROW_WARN_NOT_OK(CheckPyError(), "Internal error in async call");
55
+ });
56
+ };
57
+ future.AddCallback(std::move(future_cb));
58
+ }
59
+
60
+ } // namespace arrow::py
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/benchmark.h ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/python/platform.h"
21
+
22
+ #include "arrow/python/visibility.h"
23
+
24
+ namespace arrow {
25
+ namespace py {
26
+ namespace benchmark {
27
+
28
+ // Micro-benchmark routines for use from ASV
29
+
30
+ // Run PandasObjectIsNull() once over every object in *list*
31
+ ARROW_PYTHON_EXPORT
32
+ void Benchmark_PandasObjectIsNull(PyObject* list);
33
+
34
+ } // namespace benchmark
35
+ } // namespace py
36
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/common.h ADDED
@@ -0,0 +1,471 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <functional>
21
+ #include <memory>
22
+ #include <optional>
23
+ #include <utility>
24
+
25
+ #include "arrow/buffer.h"
26
+ #include "arrow/python/pyarrow.h"
27
+ #include "arrow/python/visibility.h"
28
+ #include "arrow/result.h"
29
+ #include "arrow/util/macros.h"
30
+
31
+ namespace arrow {
32
+
33
+ class MemoryPool;
34
+ template <class T>
35
+ class Result;
36
+
37
+ namespace py {
38
+
39
+ // Convert current Python error to a Status. The Python error state is cleared
40
+ // and can be restored with RestorePyError().
41
+ ARROW_PYTHON_EXPORT Status ConvertPyError(StatusCode code = StatusCode::UnknownError);
42
+ // Query whether the given Status is a Python error (as wrapped by ConvertPyError()).
43
+ ARROW_PYTHON_EXPORT bool IsPyError(const Status& status);
44
+ // Restore a Python error wrapped in a Status.
45
+ ARROW_PYTHON_EXPORT void RestorePyError(const Status& status);
46
+
47
+ // Catch a pending Python exception and return the corresponding Status.
48
+ // If no exception is pending, Status::OK() is returned.
49
+ inline Status CheckPyError(StatusCode code = StatusCode::UnknownError) {
50
+ if (ARROW_PREDICT_TRUE(!PyErr_Occurred())) {
51
+ return Status::OK();
52
+ } else {
53
+ return ConvertPyError(code);
54
+ }
55
+ }
56
+
57
+ #define RETURN_IF_PYERROR() ARROW_RETURN_NOT_OK(CheckPyError())
58
+
59
+ #define PY_RETURN_IF_ERROR(CODE) ARROW_RETURN_NOT_OK(CheckPyError(CODE))
60
+
61
+ // For Cython, as you can't define template C++ functions in Cython, only use them.
62
+ // This function can set a Python exception. It assumes that T has a (cheap)
63
+ // default constructor.
64
+ template <class T>
65
+ T GetResultValue(Result<T> result) {
66
+ if (ARROW_PREDICT_TRUE(result.ok())) {
67
+ return *std::move(result);
68
+ } else {
69
+ int r = internal::check_status(result.status()); // takes the GIL
70
+ assert(r == -1); // should have errored out
71
+ ARROW_UNUSED(r);
72
+ return {};
73
+ }
74
+ }
75
+
76
+ /// \brief Wrap a Result and return the corresponding Python object.
77
+ ///
78
+ /// If the Result is successful, py_wrapper is called with its result value
79
+ /// and should return a PyObject*. If py_wrapper is successful (returns
80
+ /// a non-NULL value), its return value is returned.
81
+ ///
82
+ /// If either the Result or py_wrapper fails, the associated Python exception
83
+ /// is raised and NULL is returned.
84
+ //
85
+ /// \param result The Result whose value to wrap in a Python object.
86
+ /// \param py_wrapper A function (likely defined in Cython) to convert the C++
87
+ /// value of the Result to a Python object.
88
+ /// \return A new Python reference, or NULL if an exception occurred
89
+ template <typename T, typename PyWrapper = PyObject* (*)(T)>
90
+ PyObject* WrapResult(Result<T> result, PyWrapper&& py_wrapper) {
91
+ static_assert(std::is_same_v<PyObject*, decltype(py_wrapper(std::declval<T>()))>,
92
+ "PyWrapper argument to WrapResult should return a PyObject* "
93
+ "when called with a T*");
94
+ Status st = result.status();
95
+ if (st.ok()) {
96
+ PyObject* py_value = py_wrapper(result.MoveValueUnsafe());
97
+ st = CheckPyError();
98
+ if (st.ok()) {
99
+ return py_value;
100
+ }
101
+ Py_XDECREF(py_value); // should be null, but who knows
102
+ }
103
+ // Status is an error, convert it to an exception.
104
+ return internal::convert_status(st);
105
+ }
106
+
107
+ // A RAII-style helper that ensures the GIL is acquired inside a lexical block.
108
+ class ARROW_PYTHON_EXPORT PyAcquireGIL {
109
+ public:
110
+ PyAcquireGIL() : acquired_gil_(false) { acquire(); }
111
+
112
+ ~PyAcquireGIL() { release(); }
113
+
114
+ void acquire() {
115
+ if (!acquired_gil_) {
116
+ state_ = PyGILState_Ensure();
117
+ acquired_gil_ = true;
118
+ }
119
+ }
120
+
121
+ // idempotent
122
+ void release() {
123
+ if (acquired_gil_) {
124
+ PyGILState_Release(state_);
125
+ acquired_gil_ = false;
126
+ }
127
+ }
128
+
129
+ private:
130
+ bool acquired_gil_;
131
+ PyGILState_STATE state_;
132
+ ARROW_DISALLOW_COPY_AND_ASSIGN(PyAcquireGIL);
133
+ };
134
+
135
+ // A RAII-style helper that releases the GIL until the end of a lexical block
136
+ class ARROW_PYTHON_EXPORT PyReleaseGIL {
137
+ public:
138
+ PyReleaseGIL() : ptr_(PyEval_SaveThread(), &unique_ptr_deleter) {}
139
+
140
+ private:
141
+ static void unique_ptr_deleter(PyThreadState* state) {
142
+ if (state) {
143
+ PyEval_RestoreThread(state);
144
+ }
145
+ }
146
+ std::unique_ptr<PyThreadState, decltype(&unique_ptr_deleter)> ptr_;
147
+ };
148
+
149
+ // A helper to call safely into the Python interpreter from arbitrary C++ code.
150
+ // The GIL is acquired, and the current thread's error status is preserved.
151
+ template <typename Function>
152
+ auto SafeCallIntoPython(Function&& func) -> decltype(func()) {
153
+ PyAcquireGIL lock;
154
+ PyObject* exc_type;
155
+ PyObject* exc_value;
156
+ PyObject* exc_traceback;
157
+ PyErr_Fetch(&exc_type, &exc_value, &exc_traceback);
158
+ auto maybe_status = std::forward<Function>(func)();
159
+ // If the return Status is a "Python error", the current Python error status
160
+ // describes the error and shouldn't be clobbered.
161
+ if (!IsPyError(::arrow::ToStatus(maybe_status)) && exc_type != NULLPTR) {
162
+ PyErr_Restore(exc_type, exc_value, exc_traceback);
163
+ }
164
+ return maybe_status;
165
+ }
166
+
167
+ template <typename Function>
168
+ auto SafeCallIntoPythonVoid(Function&& func) -> decltype(func()) {
169
+ PyAcquireGIL lock;
170
+ PyObject* exc_type;
171
+ PyObject* exc_value;
172
+ PyObject* exc_traceback;
173
+ PyErr_Fetch(&exc_type, &exc_value, &exc_traceback);
174
+ func();
175
+ if (exc_type != NULLPTR) {
176
+ PyErr_Restore(exc_type, exc_value, exc_traceback);
177
+ }
178
+ }
179
+
180
+ // A RAII primitive that DECREFs the underlying PyObject* when it
181
+ // goes out of scope.
182
+ class ARROW_PYTHON_EXPORT OwnedRef {
183
+ public:
184
+ OwnedRef() : obj_(NULLPTR) {}
185
+ OwnedRef(OwnedRef&& other) : OwnedRef(other.detach()) {}
186
+ explicit OwnedRef(PyObject* obj) : obj_(obj) {}
187
+
188
+ OwnedRef& operator=(OwnedRef&& other) {
189
+ obj_ = other.detach();
190
+ return *this;
191
+ }
192
+
193
+ ~OwnedRef() {
194
+ // GH-38626: destructor may be called after the Python interpreter is finalized.
195
+ if (Py_IsInitialized()) {
196
+ reset();
197
+ }
198
+ }
199
+
200
+ void reset(PyObject* obj) {
201
+ Py_XDECREF(obj_);
202
+ obj_ = obj;
203
+ }
204
+
205
+ void reset() { reset(NULLPTR); }
206
+
207
+ PyObject* detach() {
208
+ PyObject* result = obj_;
209
+ obj_ = NULLPTR;
210
+ return result;
211
+ }
212
+
213
+ PyObject* obj() const { return obj_; }
214
+
215
+ PyObject** ref() { return &obj_; }
216
+
217
+ operator bool() const { return obj_ != NULLPTR; }
218
+
219
+ private:
220
+ ARROW_DISALLOW_COPY_AND_ASSIGN(OwnedRef);
221
+
222
+ PyObject* obj_;
223
+ };
224
+
225
+ // Same as OwnedRef, but ensures the GIL is taken when it goes out of scope.
226
+ // This is for situations where the GIL is not always known to be held
227
+ // (e.g. if it is released in the middle of a function for performance reasons)
228
+ class ARROW_PYTHON_EXPORT OwnedRefNoGIL : public OwnedRef {
229
+ public:
230
+ OwnedRefNoGIL() : OwnedRef() {}
231
+ OwnedRefNoGIL(OwnedRefNoGIL&& other) : OwnedRef(other.detach()) {}
232
+ explicit OwnedRefNoGIL(PyObject* obj) : OwnedRef(obj) {}
233
+
234
+ ~OwnedRefNoGIL() {
235
+ // GH-38626: destructor may be called after the Python interpreter is finalized.
236
+ if (Py_IsInitialized() && obj() != NULLPTR) {
237
+ PyAcquireGIL lock;
238
+ reset();
239
+ }
240
+ }
241
+ };
242
+
243
+ template <template <typename...> typename SmartPtr, typename... Ts>
244
+ class SmartPtrNoGIL : public SmartPtr<Ts...> {
245
+ using Base = SmartPtr<Ts...>;
246
+
247
+ public:
248
+ template <typename... Args>
249
+ SmartPtrNoGIL(Args&&... args) : Base(std::forward<Args>(args)...) {}
250
+
251
+ ~SmartPtrNoGIL() { reset(); }
252
+
253
+ template <typename... Args>
254
+ void reset(Args&&... args) {
255
+ auto release_guard = optional_gil_release();
256
+ Base::reset(std::forward<Args>(args)...);
257
+ }
258
+
259
+ template <typename V>
260
+ SmartPtrNoGIL& operator=(V&& v) {
261
+ auto release_guard = optional_gil_release();
262
+ Base::operator=(std::forward<V>(v));
263
+ return *this;
264
+ }
265
+
266
+ private:
267
+ // Only release the GIL if we own an object *and* the Python runtime is
268
+ // valid *and* the GIL is held.
269
+ std::optional<PyReleaseGIL> optional_gil_release() const {
270
+ if (this->get() != nullptr && Py_IsInitialized() && PyGILState_Check()) {
271
+ return PyReleaseGIL();
272
+ }
273
+ return {};
274
+ }
275
+ };
276
+
277
+ /// \brief A std::shared_ptr<T, ...> subclass that releases the GIL when destroying T
278
+ template <typename... Ts>
279
+ using SharedPtrNoGIL = SmartPtrNoGIL<std::shared_ptr, Ts...>;
280
+
281
+ /// \brief A std::unique_ptr<T, ...> subclass that releases the GIL when destroying T
282
+ template <typename... Ts>
283
+ using UniquePtrNoGIL = SmartPtrNoGIL<std::unique_ptr, Ts...>;
284
+
285
+ template <typename Fn>
286
+ struct BoundFunction;
287
+
288
+ template <typename... Args>
289
+ struct BoundFunction<void(PyObject*, Args...)> {
290
+ // We bind `cdef void fn(object, ...)` to get a `Status(...)`
291
+ // where the Status contains any Python error raised by `fn`
292
+ using Unbound = void(PyObject*, Args...);
293
+ using Bound = Status(Args...);
294
+
295
+ BoundFunction(Unbound* unbound, PyObject* bound_arg)
296
+ : unbound_(unbound), bound_arg_(bound_arg) {}
297
+
298
+ Status Invoke(Args... args) const {
299
+ PyAcquireGIL lock;
300
+ unbound_(bound_arg_.obj(), std::forward<Args>(args)...);
301
+ RETURN_IF_PYERROR();
302
+ return Status::OK();
303
+ }
304
+
305
+ Unbound* unbound_;
306
+ OwnedRefNoGIL bound_arg_;
307
+ };
308
+
309
+ template <typename Return, typename... Args>
310
+ struct BoundFunction<Return(PyObject*, Args...)> {
311
+ // We bind `cdef Return fn(object, ...)` to get a `Result<Return>(...)`
312
+ // where the Result contains any Python error raised by `fn` or the
313
+ // return value from `fn`.
314
+ using Unbound = Return(PyObject*, Args...);
315
+ using Bound = Result<Return>(Args...);
316
+
317
+ BoundFunction(Unbound* unbound, PyObject* bound_arg)
318
+ : unbound_(unbound), bound_arg_(bound_arg) {}
319
+
320
+ Result<Return> Invoke(Args... args) const {
321
+ PyAcquireGIL lock;
322
+ Return ret = unbound_(bound_arg_.obj(), std::forward<Args>(args)...);
323
+ RETURN_IF_PYERROR();
324
+ return ret;
325
+ }
326
+
327
+ Unbound* unbound_;
328
+ OwnedRefNoGIL bound_arg_;
329
+ };
330
+
331
+ template <typename OutFn, typename Return, typename... Args>
332
+ std::function<OutFn> BindFunction(Return (*unbound)(PyObject*, Args...),
333
+ PyObject* bound_arg) {
334
+ using Fn = BoundFunction<Return(PyObject*, Args...)>;
335
+
336
+ static_assert(std::is_same<typename Fn::Bound, OutFn>::value,
337
+ "requested bound function of unsupported type");
338
+
339
+ Py_XINCREF(bound_arg);
340
+ auto bound_fn = std::make_shared<Fn>(unbound, bound_arg);
341
+ return
342
+ [bound_fn](Args... args) { return bound_fn->Invoke(std::forward<Args>(args)...); };
343
+ }
344
+
345
+ // A temporary conversion of a Python object to a bytes area.
346
+ struct PyBytesView {
347
+ const char* bytes;
348
+ Py_ssize_t size;
349
+ bool is_utf8;
350
+
351
+ static Result<PyBytesView> FromString(PyObject* obj, bool check_utf8 = false) {
352
+ PyBytesView self;
353
+ ARROW_RETURN_NOT_OK(self.ParseString(obj, check_utf8));
354
+ return std::move(self);
355
+ }
356
+
357
+ static Result<PyBytesView> FromUnicode(PyObject* obj) {
358
+ PyBytesView self;
359
+ ARROW_RETURN_NOT_OK(self.ParseUnicode(obj));
360
+ return std::move(self);
361
+ }
362
+
363
+ static Result<PyBytesView> FromBinary(PyObject* obj) {
364
+ PyBytesView self;
365
+ ARROW_RETURN_NOT_OK(self.ParseBinary(obj));
366
+ return std::move(self);
367
+ }
368
+
369
+ // View the given Python object as string-like, i.e. str or (utf8) bytes
370
+ Status ParseString(PyObject* obj, bool check_utf8 = false) {
371
+ if (PyUnicode_Check(obj)) {
372
+ return ParseUnicode(obj);
373
+ } else {
374
+ ARROW_RETURN_NOT_OK(ParseBinary(obj));
375
+ if (check_utf8) {
376
+ // Check the bytes are utf8 utf-8
377
+ OwnedRef decoded(PyUnicode_FromStringAndSize(bytes, size));
378
+ if (ARROW_PREDICT_TRUE(!PyErr_Occurred())) {
379
+ is_utf8 = true;
380
+ } else {
381
+ PyErr_Clear();
382
+ is_utf8 = false;
383
+ }
384
+ }
385
+ return Status::OK();
386
+ }
387
+ }
388
+
389
+ // View the given Python object as unicode string
390
+ Status ParseUnicode(PyObject* obj) {
391
+ // The utf-8 representation is cached on the unicode object
392
+ bytes = PyUnicode_AsUTF8AndSize(obj, &size);
393
+ RETURN_IF_PYERROR();
394
+ is_utf8 = true;
395
+ return Status::OK();
396
+ }
397
+
398
+ // View the given Python object as binary-like, i.e. bytes
399
+ Status ParseBinary(PyObject* obj) {
400
+ if (PyBytes_Check(obj)) {
401
+ bytes = PyBytes_AS_STRING(obj);
402
+ size = PyBytes_GET_SIZE(obj);
403
+ is_utf8 = false;
404
+ } else if (PyByteArray_Check(obj)) {
405
+ bytes = PyByteArray_AS_STRING(obj);
406
+ size = PyByteArray_GET_SIZE(obj);
407
+ is_utf8 = false;
408
+ } else if (PyMemoryView_Check(obj)) {
409
+ PyObject* ref = PyMemoryView_GetContiguous(obj, PyBUF_READ, 'C');
410
+ RETURN_IF_PYERROR();
411
+ Py_buffer* buffer = PyMemoryView_GET_BUFFER(ref);
412
+ bytes = reinterpret_cast<const char*>(buffer->buf);
413
+ size = buffer->len;
414
+ is_utf8 = false;
415
+ } else {
416
+ return Status::TypeError("Expected bytes, got a '", Py_TYPE(obj)->tp_name,
417
+ "' object");
418
+ }
419
+ return Status::OK();
420
+ }
421
+
422
+ // Parse bytes from a uuid.UUID object (stores reference to keep bytes alive)
423
+ Status ParseUuid(PyObject* obj) {
424
+ ref.reset(PyObject_GetAttrString(obj, "bytes"));
425
+ RETURN_IF_PYERROR();
426
+ if (!PyBytes_Check(ref.obj())) {
427
+ return Status::TypeError("Expected uuid.UUID.bytes to return bytes, got '",
428
+ Py_TYPE(ref.obj())->tp_name, "' object");
429
+ }
430
+ bytes = PyBytes_AS_STRING(ref.obj());
431
+ size = PyBytes_GET_SIZE(ref.obj());
432
+ is_utf8 = false;
433
+ return Status::OK();
434
+ }
435
+
436
+ protected:
437
+ OwnedRef ref;
438
+ };
439
+
440
+ class ARROW_PYTHON_EXPORT PyBuffer : public Buffer {
441
+ public:
442
+ /// While memoryview objects support multi-dimensional buffers, PyBuffer only supports
443
+ /// one-dimensional byte buffers.
444
+ ~PyBuffer();
445
+
446
+ static Result<std::shared_ptr<Buffer>> FromPyObject(PyObject* obj);
447
+
448
+ private:
449
+ PyBuffer();
450
+ Status Init(PyObject*);
451
+
452
+ Py_buffer py_buf_;
453
+ };
454
+
455
+ // Return the common PyArrow memory pool
456
+ ARROW_PYTHON_EXPORT void set_default_memory_pool(MemoryPool* pool);
457
+ ARROW_PYTHON_EXPORT MemoryPool* get_memory_pool();
458
+
459
+ // This is annoying: because C++11 does not allow implicit conversion of string
460
+ // literals to non-const char*, we need to go through some gymnastics to use
461
+ // PyObject_CallMethod without a lot of pain (its arguments are non-const
462
+ // char*)
463
+ template <typename... ArgTypes>
464
+ static inline PyObject* cpp_PyObject_CallMethod(PyObject* obj, const char* method_name,
465
+ const char* argspec, ArgTypes... args) {
466
+ return PyObject_CallMethod(obj, const_cast<char*>(method_name),
467
+ const_cast<char*>(argspec), args...);
468
+ }
469
+
470
+ } // namespace py
471
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/config.h ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <string>
21
+
22
+ #include "arrow/python/visibility.h"
23
+
24
+ namespace arrow {
25
+ namespace py {
26
+
27
+ struct BuildInfo {
28
+ // The uppercase build type, e.g. "DEBUG" or "RELEASE"
29
+ std::string build_type;
30
+ };
31
+
32
+ /// \brief Get build info for PyArrow.
33
+ ///
34
+ ARROW_PYTHON_EXPORT
35
+ const BuildInfo& GetBuildInfo();
36
+
37
+ namespace internal {
38
+
39
+ ARROW_PYTHON_EXPORT
40
+ bool IsOpenTelemetryEnabled();
41
+
42
+ ARROW_PYTHON_EXPORT
43
+ bool IsThreadingEnabled();
44
+
45
+ } // namespace internal
46
+ } // namespace py
47
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/csv.h ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <functional>
21
+ #include <memory>
22
+ #include <string>
23
+ #include <vector>
24
+
25
+ #include "arrow/csv/options.h"
26
+ #include "arrow/python/common.h"
27
+ #include "arrow/util/macros.h"
28
+
29
+ namespace arrow {
30
+ namespace py {
31
+ namespace csv {
32
+
33
+ using PyInvalidRowCallback = std::function<::arrow::csv::InvalidRowResult(
34
+ PyObject*, const ::arrow::csv::InvalidRow&)>;
35
+
36
+ ARROW_PYTHON_EXPORT
37
+ ::arrow::csv::InvalidRowHandler MakeInvalidRowHandler(PyInvalidRowCallback,
38
+ PyObject* handler);
39
+
40
+ } // namespace csv
41
+ } // namespace py
42
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/datetime.h ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <algorithm>
21
+ #include <chrono>
22
+
23
+ #include "arrow/python/platform.h"
24
+ #include "arrow/python/visibility.h"
25
+ #include "arrow/result.h"
26
+ #include "arrow/status.h"
27
+ #include "arrow/type.h"
28
+ #include "arrow/type_fwd.h"
29
+ #include "arrow/util/int_util_overflow.h"
30
+ #include "arrow/util/logging.h"
31
+
32
+ // By default, PyDateTimeAPI is a *static* variable. This forces
33
+ // PyDateTime_IMPORT to be called in every C/C++ module using the
34
+ // C datetime API. This is error-prone and potentially costly.
35
+ // Instead, we redefine PyDateTimeAPI to point to a global variable,
36
+ // which is initialized once by calling InitDatetime().
37
+ #ifdef PYPY_VERSION
38
+ # include "datetime.h"
39
+ #else
40
+ # define PyDateTimeAPI ::arrow::py::internal::datetime_api
41
+ #endif
42
+
43
+ namespace arrow {
44
+ using internal::AddWithOverflow;
45
+ using internal::MultiplyWithOverflow;
46
+ namespace py {
47
+ namespace internal {
48
+
49
+ #ifndef PYPY_VERSION
50
+ extern PyDateTime_CAPI* datetime_api;
51
+
52
+ ARROW_PYTHON_EXPORT
53
+ void InitDatetime();
54
+ #endif
55
+
56
+ // Returns the MonthDayNano namedtuple type (increments the reference count).
57
+ ARROW_PYTHON_EXPORT
58
+ PyObject* NewMonthDayNanoTupleType();
59
+
60
+ ARROW_PYTHON_EXPORT
61
+ inline int64_t PyTime_to_us(PyObject* pytime) {
62
+ return (PyDateTime_TIME_GET_HOUR(pytime) * 3600000000LL +
63
+ PyDateTime_TIME_GET_MINUTE(pytime) * 60000000LL +
64
+ PyDateTime_TIME_GET_SECOND(pytime) * 1000000LL +
65
+ PyDateTime_TIME_GET_MICROSECOND(pytime));
66
+ }
67
+
68
+ ARROW_PYTHON_EXPORT
69
+ inline int64_t PyTime_to_s(PyObject* pytime) { return PyTime_to_us(pytime) / 1000000; }
70
+
71
+ ARROW_PYTHON_EXPORT
72
+ inline int64_t PyTime_to_ms(PyObject* pytime) { return PyTime_to_us(pytime) / 1000; }
73
+
74
+ ARROW_PYTHON_EXPORT
75
+ inline int64_t PyTime_to_ns(PyObject* pytime) { return PyTime_to_us(pytime) * 1000; }
76
+
77
+ ARROW_PYTHON_EXPORT
78
+ Status PyTime_from_int(int64_t val, const TimeUnit::type unit, PyObject** out);
79
+
80
+ ARROW_PYTHON_EXPORT
81
+ Status PyDate_from_int(int64_t val, const DateUnit unit, PyObject** out);
82
+
83
+ // WARNING: This function returns a naive datetime.
84
+ ARROW_PYTHON_EXPORT
85
+ Status PyDateTime_from_int(int64_t val, const TimeUnit::type unit, PyObject** out);
86
+
87
+ // This declaration must be the same as in filesystem/filesystem.h
88
+ using TimePoint =
89
+ std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds>;
90
+
91
+ ARROW_PYTHON_EXPORT
92
+ int64_t PyDate_to_days(PyDateTime_Date* pydate);
93
+
94
+ ARROW_PYTHON_EXPORT
95
+ inline int64_t PyDate_to_s(PyDateTime_Date* pydate) {
96
+ return PyDate_to_days(pydate) * 86400LL;
97
+ }
98
+
99
+ ARROW_PYTHON_EXPORT
100
+ inline int64_t PyDate_to_ms(PyDateTime_Date* pydate) {
101
+ return PyDate_to_days(pydate) * 86400000LL;
102
+ }
103
+
104
+ ARROW_PYTHON_EXPORT
105
+ inline int64_t PyDateTime_to_s(PyDateTime_DateTime* pydatetime) {
106
+ return (PyDate_to_s(reinterpret_cast<PyDateTime_Date*>(pydatetime)) +
107
+ PyDateTime_DATE_GET_HOUR(pydatetime) * 3600LL +
108
+ PyDateTime_DATE_GET_MINUTE(pydatetime) * 60LL +
109
+ PyDateTime_DATE_GET_SECOND(pydatetime));
110
+ }
111
+
112
+ ARROW_PYTHON_EXPORT
113
+ inline int64_t PyDateTime_to_ms(PyDateTime_DateTime* pydatetime) {
114
+ return (PyDateTime_to_s(pydatetime) * 1000LL +
115
+ PyDateTime_DATE_GET_MICROSECOND(pydatetime) / 1000);
116
+ }
117
+
118
+ ARROW_PYTHON_EXPORT
119
+ inline int64_t PyDateTime_to_us(PyDateTime_DateTime* pydatetime) {
120
+ return (PyDateTime_to_s(pydatetime) * 1000000LL +
121
+ PyDateTime_DATE_GET_MICROSECOND(pydatetime));
122
+ }
123
+
124
+ ARROW_PYTHON_EXPORT
125
+ inline int64_t PyDateTime_to_ns(PyDateTime_DateTime* pydatetime) {
126
+ return PyDateTime_to_us(pydatetime) * 1000LL;
127
+ }
128
+
129
+ ARROW_PYTHON_EXPORT
130
+ inline TimePoint PyDateTime_to_TimePoint(PyDateTime_DateTime* pydatetime) {
131
+ return TimePoint(TimePoint::duration(PyDateTime_to_ns(pydatetime)));
132
+ }
133
+
134
+ ARROW_PYTHON_EXPORT
135
+ inline int64_t TimePoint_to_ns(TimePoint val) { return val.time_since_epoch().count(); }
136
+
137
+ ARROW_PYTHON_EXPORT
138
+ inline TimePoint TimePoint_from_s(double val) {
139
+ return TimePoint(TimePoint::duration(static_cast<int64_t>(1e9 * val)));
140
+ }
141
+
142
+ ARROW_PYTHON_EXPORT
143
+ inline TimePoint TimePoint_from_ns(int64_t val) {
144
+ return TimePoint(TimePoint::duration(val));
145
+ }
146
+
147
+ ARROW_PYTHON_EXPORT
148
+ inline int64_t PyDelta_to_s(PyDateTime_Delta* pytimedelta) {
149
+ return (PyDateTime_DELTA_GET_DAYS(pytimedelta) * 86400LL +
150
+ PyDateTime_DELTA_GET_SECONDS(pytimedelta));
151
+ }
152
+
153
+ ARROW_PYTHON_EXPORT
154
+ inline int64_t PyDelta_to_ms(PyDateTime_Delta* pytimedelta) {
155
+ return (PyDelta_to_s(pytimedelta) * 1000LL +
156
+ PyDateTime_DELTA_GET_MICROSECONDS(pytimedelta) / 1000);
157
+ }
158
+
159
+ ARROW_PYTHON_EXPORT
160
+ inline Result<int64_t> PyDelta_to_us(PyDateTime_Delta* pytimedelta) {
161
+ int64_t result = PyDelta_to_s(pytimedelta);
162
+ if (MultiplyWithOverflow(result, 1000000LL, &result)) {
163
+ return Status::Invalid("Timedelta too large to fit in 64-bit integer");
164
+ }
165
+ if (AddWithOverflow(result, PyDateTime_DELTA_GET_MICROSECONDS(pytimedelta), &result)) {
166
+ return Status::Invalid("Timedelta too large to fit in 64-bit integer");
167
+ }
168
+ return result;
169
+ }
170
+
171
+ ARROW_PYTHON_EXPORT
172
+ inline Result<int64_t> PyDelta_to_ns(PyDateTime_Delta* pytimedelta) {
173
+ ARROW_ASSIGN_OR_RAISE(int64_t result, PyDelta_to_us(pytimedelta));
174
+ if (MultiplyWithOverflow(result, 1000LL, &result)) {
175
+ return Status::Invalid("Timedelta too large to fit in 64-bit integer");
176
+ }
177
+ return result;
178
+ }
179
+
180
+ ARROW_PYTHON_EXPORT
181
+ Result<int64_t> PyDateTime_utcoffset_s(PyObject* pydatetime);
182
+
183
+ /// \brief Convert a time zone name into a time zone object.
184
+ ///
185
+ /// Supported input strings are:
186
+ /// * As used in the Olson time zone database (the "tz database" or
187
+ /// "tzdata"), such as "America/New_York"
188
+ /// * An absolute time zone offset of the form +XX:XX or -XX:XX, such as +07:30
189
+ /// GIL must be held when calling this method.
190
+ ARROW_PYTHON_EXPORT
191
+ Result<PyObject*> StringToTzinfo(const std::string& tz, bool prefer_zoneinfo = true);
192
+
193
+ /// \brief Convert a time zone object to a string representation.
194
+ ///
195
+ /// The output strings are:
196
+ /// * An absolute time zone offset of the form +XX:XX or -XX:XX, such as +07:30
197
+ /// if the input object is either an instance of pytz._FixedOffset or
198
+ /// datetime.timedelta
199
+ /// * The timezone's name if the input object's tzname() method returns with a
200
+ /// non-empty timezone name such as "UTC" or "America/New_York"
201
+ ///
202
+ /// GIL must be held when calling this method.
203
+ ARROW_PYTHON_EXPORT
204
+ Result<std::string> TzinfoToString(PyObject* pytzinfo);
205
+
206
+ /// \brief Convert MonthDayNano to a python namedtuple.
207
+ ///
208
+ /// Return a named tuple (pyarrow.MonthDayNano) containing attributes
209
+ /// "months", "days", "nanoseconds" in the given order
210
+ /// with values extracted from the fields on interval.
211
+ ///
212
+ /// GIL must be held when calling this method.
213
+ ARROW_PYTHON_EXPORT
214
+ PyObject* MonthDayNanoIntervalToNamedTuple(
215
+ const MonthDayNanoIntervalType::MonthDayNanos& interval);
216
+
217
+ /// \brief Convert the given Array to a PyList object containing
218
+ /// pyarrow.MonthDayNano objects.
219
+ ARROW_PYTHON_EXPORT
220
+ Result<PyObject*> MonthDayNanoIntervalArrayToPyList(
221
+ const MonthDayNanoIntervalArray& array);
222
+
223
+ /// \brief Convert the Scalar object to a pyarrow.MonthDayNano (or None if
224
+ /// is isn't valid).
225
+ ARROW_PYTHON_EXPORT
226
+ Result<PyObject*> MonthDayNanoIntervalScalarToPyObject(
227
+ const MonthDayNanoIntervalScalar& scalar);
228
+
229
+ } // namespace internal
230
+ } // namespace py
231
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/decimal.h ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <string>
21
+
22
+ #include "arrow/python/visibility.h"
23
+ #include "arrow/type.h"
24
+
25
+ namespace arrow {
26
+
27
+ class Decimal128;
28
+ class Decimal256;
29
+
30
+ namespace py {
31
+
32
+ class OwnedRef;
33
+
34
+ //
35
+ // Python Decimal support
36
+ //
37
+
38
+ namespace internal {
39
+
40
+ // \brief Import the Python Decimal type
41
+ ARROW_PYTHON_EXPORT
42
+ Status ImportDecimalType(OwnedRef* decimal_type);
43
+
44
+ // \brief Convert a Python Decimal object to a C++ string
45
+ // \param[in] python_decimal A Python decimal.Decimal instance
46
+ // \param[out] The string representation of the Python Decimal instance
47
+ // \return The status of the operation
48
+ ARROW_PYTHON_EXPORT
49
+ Status PythonDecimalToString(PyObject* python_decimal, std::string* out);
50
+
51
+ // \brief Convert a C++ std::string to a Python Decimal instance
52
+ // \param[in] decimal_constructor The decimal type object
53
+ // \param[in] decimal_string A decimal string
54
+ // \return An instance of decimal.Decimal
55
+ ARROW_PYTHON_EXPORT
56
+ PyObject* DecimalFromString(PyObject* decimal_constructor,
57
+ const std::string& decimal_string);
58
+
59
+ // \brief Convert a Python decimal to an Arrow Decimal128 object
60
+ // \param[in] python_decimal A Python decimal.Decimal instance
61
+ // \param[in] arrow_type An instance of arrow::DecimalType
62
+ // \param[out] out A pointer to a Decimal128
63
+ // \return The status of the operation
64
+ ARROW_PYTHON_EXPORT
65
+ Status DecimalFromPythonDecimal(PyObject* python_decimal, const DecimalType& arrow_type,
66
+ Decimal32* out);
67
+
68
+ // \brief Convert a Python object to an Arrow Decimal128 object
69
+ // \param[in] python_decimal A Python int or decimal.Decimal instance
70
+ // \param[in] arrow_type An instance of arrow::DecimalType
71
+ // \param[out] out A pointer to a Decimal128
72
+ // \return The status of the operation
73
+ ARROW_PYTHON_EXPORT
74
+ Status DecimalFromPyObject(PyObject* obj, const DecimalType& arrow_type, Decimal32* out);
75
+
76
+ // \brief Convert a Python decimal to an Arrow Decimal128 object
77
+ // \param[in] python_decimal A Python decimal.Decimal instance
78
+ // \param[in] arrow_type An instance of arrow::DecimalType
79
+ // \param[out] out A pointer to a Decimal128
80
+ // \return The status of the operation
81
+ ARROW_PYTHON_EXPORT
82
+ Status DecimalFromPythonDecimal(PyObject* python_decimal, const DecimalType& arrow_type,
83
+ Decimal64* out);
84
+
85
+ // \brief Convert a Python object to an Arrow Decimal128 object
86
+ // \param[in] python_decimal A Python int or decimal.Decimal instance
87
+ // \param[in] arrow_type An instance of arrow::DecimalType
88
+ // \param[out] out A pointer to a Decimal128
89
+ // \return The status of the operation
90
+ ARROW_PYTHON_EXPORT
91
+ Status DecimalFromPyObject(PyObject* obj, const DecimalType& arrow_type, Decimal64* out);
92
+
93
+ // \brief Convert a Python decimal to an Arrow Decimal128 object
94
+ // \param[in] python_decimal A Python decimal.Decimal instance
95
+ // \param[in] arrow_type An instance of arrow::DecimalType
96
+ // \param[out] out A pointer to a Decimal128
97
+ // \return The status of the operation
98
+ ARROW_PYTHON_EXPORT
99
+ Status DecimalFromPythonDecimal(PyObject* python_decimal, const DecimalType& arrow_type,
100
+ Decimal128* out);
101
+
102
+ // \brief Convert a Python object to an Arrow Decimal128 object
103
+ // \param[in] python_decimal A Python int or decimal.Decimal instance
104
+ // \param[in] arrow_type An instance of arrow::DecimalType
105
+ // \param[out] out A pointer to a Decimal128
106
+ // \return The status of the operation
107
+ ARROW_PYTHON_EXPORT
108
+ Status DecimalFromPyObject(PyObject* obj, const DecimalType& arrow_type, Decimal128* out);
109
+
110
+ // \brief Convert a Python decimal to an Arrow Decimal256 object
111
+ // \param[in] python_decimal A Python decimal.Decimal instance
112
+ // \param[in] arrow_type An instance of arrow::DecimalType
113
+ // \param[out] out A pointer to a Decimal256
114
+ // \return The status of the operation
115
+ ARROW_PYTHON_EXPORT
116
+ Status DecimalFromPythonDecimal(PyObject* python_decimal, const DecimalType& arrow_type,
117
+ Decimal256* out);
118
+
119
+ // \brief Convert a Python object to an Arrow Decimal256 object
120
+ // \param[in] python_decimal A Python int or decimal.Decimal instance
121
+ // \param[in] arrow_type An instance of arrow::DecimalType
122
+ // \param[out] out A pointer to a Decimal256
123
+ // \return The status of the operation
124
+ ARROW_PYTHON_EXPORT
125
+ Status DecimalFromPyObject(PyObject* obj, const DecimalType& arrow_type, Decimal256* out);
126
+
127
+ // \brief Check whether obj is an instance of Decimal
128
+ ARROW_PYTHON_EXPORT
129
+ bool PyDecimal_Check(PyObject* obj);
130
+
131
+ // \brief Check whether obj is nan. This function will abort the program if the argument
132
+ // is not a Decimal instance
133
+ ARROW_PYTHON_EXPORT
134
+ bool PyDecimal_ISNAN(PyObject* obj);
135
+
136
+ // \brief Helper class to track and update the precision and scale of a decimal
137
+ class ARROW_PYTHON_EXPORT DecimalMetadata {
138
+ public:
139
+ DecimalMetadata();
140
+ DecimalMetadata(int32_t precision, int32_t scale);
141
+
142
+ // \brief Adjust the precision and scale of a decimal type given a new precision and a
143
+ // new scale \param[in] suggested_precision A candidate precision \param[in]
144
+ // suggested_scale A candidate scale \return The status of the operation
145
+ Status Update(int32_t suggested_precision, int32_t suggested_scale);
146
+
147
+ // \brief A convenient interface for updating the precision and scale based on a Python
148
+ // Decimal object \param object A Python Decimal object \return The status of the
149
+ // operation
150
+ Status Update(PyObject* object);
151
+
152
+ int32_t precision() const { return precision_; }
153
+ int32_t scale() const { return scale_; }
154
+
155
+ private:
156
+ int32_t precision_;
157
+ int32_t scale_;
158
+ };
159
+
160
+ } // namespace internal
161
+ } // namespace py
162
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/extension_type.h ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <memory>
21
+ #include <string>
22
+
23
+ #include "arrow/extension_type.h"
24
+ #include "arrow/python/common.h"
25
+ #include "arrow/python/visibility.h"
26
+ #include "arrow/util/macros.h"
27
+
28
+ namespace arrow {
29
+ namespace py {
30
+
31
+ class ARROW_PYTHON_EXPORT PyExtensionType : public ExtensionType {
32
+ public:
33
+ // Implement extensionType API
34
+ std::string extension_name() const override { return extension_name_; }
35
+
36
+ std::string ToString(bool show_metadata = false) const override;
37
+
38
+ bool ExtensionEquals(const ExtensionType& other) const override;
39
+
40
+ std::shared_ptr<Array> MakeArray(std::shared_ptr<ArrayData> data) const override;
41
+
42
+ Result<std::shared_ptr<DataType>> Deserialize(
43
+ std::shared_ptr<DataType> storage_type,
44
+ const std::string& serialized) const override;
45
+
46
+ std::string Serialize() const override;
47
+
48
+ // For use from Cython
49
+ // Assumes that `typ` is borrowed
50
+ static Status FromClass(const std::shared_ptr<DataType> storage_type,
51
+ const std::string extension_name, PyObject* typ,
52
+ std::shared_ptr<ExtensionType>* out);
53
+
54
+ // Return new ref
55
+ PyObject* GetInstance() const;
56
+ Status SetInstance(PyObject*) const;
57
+
58
+ protected:
59
+ PyExtensionType(std::shared_ptr<DataType> storage_type, PyObject* typ,
60
+ PyObject* inst = NULLPTR);
61
+ PyExtensionType(std::shared_ptr<DataType> storage_type, std::string extension_name,
62
+ PyObject* typ, PyObject* inst = NULLPTR);
63
+
64
+ std::string extension_name_;
65
+
66
+ // These fields are mutable because of two-step initialization.
67
+ mutable OwnedRefNoGIL type_class_;
68
+ // A weakref or null. Storing a strong reference to the Python extension type
69
+ // instance would create an unreclaimable reference cycle between Python and C++
70
+ // (the Python instance has to keep a strong reference to the C++ ExtensionType
71
+ // in other direction). Instead, we store a weakref to the instance.
72
+ // If the weakref is dead, we reconstruct the instance from its serialized form.
73
+ mutable OwnedRefNoGIL type_instance_;
74
+ // Empty if type_instance_ is null
75
+ mutable std::string serialized_;
76
+ };
77
+
78
+ ARROW_PYTHON_EXPORT std::string PyExtensionName();
79
+
80
+ ARROW_PYTHON_EXPORT Status RegisterPyExtensionType(const std::shared_ptr<DataType>&);
81
+
82
+ ARROW_PYTHON_EXPORT Status UnregisterPyExtensionType(const std::string& type_name);
83
+
84
+ } // namespace py
85
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/filesystem.h ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <memory>
21
+ #include <string>
22
+ #include <vector>
23
+
24
+ #include "arrow/filesystem/filesystem.h"
25
+ #include "arrow/python/common.h"
26
+ #include "arrow/python/visibility.h"
27
+ #include "arrow/util/macros.h"
28
+
29
+ namespace arrow::py::fs {
30
+
31
+ class ARROW_PYTHON_EXPORT PyFileSystemVtable {
32
+ public:
33
+ std::function<void(PyObject*, std::string* out)> get_type_name;
34
+ std::function<bool(PyObject*, const arrow::fs::FileSystem& other)> equals;
35
+
36
+ std::function<void(PyObject*, const std::string& path, arrow::fs::FileInfo* out)>
37
+ get_file_info;
38
+ std::function<void(PyObject*, const std::vector<std::string>& paths,
39
+ std::vector<arrow::fs::FileInfo>* out)>
40
+ get_file_info_vector;
41
+ std::function<void(PyObject*, const arrow::fs::FileSelector&,
42
+ std::vector<arrow::fs::FileInfo>* out)>
43
+ get_file_info_selector;
44
+
45
+ std::function<void(PyObject*, const std::string& path, bool)> create_dir;
46
+ std::function<void(PyObject*, const std::string& path)> delete_dir;
47
+ std::function<void(PyObject*, const std::string& path, bool)> delete_dir_contents;
48
+ std::function<void(PyObject*)> delete_root_dir_contents;
49
+ std::function<void(PyObject*, const std::string& path)> delete_file;
50
+ std::function<void(PyObject*, const std::string& src, const std::string& dest)> move;
51
+ std::function<void(PyObject*, const std::string& src, const std::string& dest)>
52
+ copy_file;
53
+
54
+ std::function<void(PyObject*, const std::string& path,
55
+ std::shared_ptr<io::InputStream>* out)>
56
+ open_input_stream;
57
+ std::function<void(PyObject*, const std::string& path,
58
+ std::shared_ptr<io::RandomAccessFile>* out)>
59
+ open_input_file;
60
+ std::function<void(PyObject*, const std::string& path,
61
+ const std::shared_ptr<const KeyValueMetadata>&,
62
+ std::shared_ptr<io::OutputStream>* out)>
63
+ open_output_stream;
64
+ std::function<void(PyObject*, const std::string& path,
65
+ const std::shared_ptr<const KeyValueMetadata>&,
66
+ std::shared_ptr<io::OutputStream>* out)>
67
+ open_append_stream;
68
+
69
+ std::function<void(PyObject*, const std::string& path, std::string* out)>
70
+ normalize_path;
71
+ };
72
+
73
+ class ARROW_PYTHON_EXPORT PyFileSystem : public arrow::fs::FileSystem {
74
+ public:
75
+ PyFileSystem(PyObject* handler, PyFileSystemVtable vtable);
76
+ ~PyFileSystem() override;
77
+
78
+ static std::shared_ptr<PyFileSystem> Make(PyObject* handler, PyFileSystemVtable vtable);
79
+
80
+ std::string type_name() const override;
81
+
82
+ bool Equals(const FileSystem& other) const override;
83
+
84
+ /// \cond FALSE
85
+ using FileSystem::CreateDir;
86
+ using FileSystem::DeleteDirContents;
87
+ using FileSystem::GetFileInfo;
88
+ using FileSystem::OpenAppendStream;
89
+ using FileSystem::OpenOutputStream;
90
+ /// \endcond
91
+
92
+ Result<arrow::fs::FileInfo> GetFileInfo(const std::string& path) override;
93
+ Result<std::vector<arrow::fs::FileInfo>> GetFileInfo(
94
+ const std::vector<std::string>& paths) override;
95
+ Result<std::vector<arrow::fs::FileInfo>> GetFileInfo(
96
+ const arrow::fs::FileSelector& select) override;
97
+
98
+ Status CreateDir(const std::string& path, bool recursive) override;
99
+
100
+ Status DeleteDir(const std::string& path) override;
101
+ Status DeleteDirContents(const std::string& path, bool missing_dir_ok) override;
102
+ Status DeleteRootDirContents() override;
103
+
104
+ Status DeleteFile(const std::string& path) override;
105
+
106
+ Status Move(const std::string& src, const std::string& dest) override;
107
+
108
+ Status CopyFile(const std::string& src, const std::string& dest) override;
109
+
110
+ Result<std::shared_ptr<io::InputStream>> OpenInputStream(
111
+ const std::string& path) override;
112
+ Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(
113
+ const std::string& path) override;
114
+ Result<std::shared_ptr<io::OutputStream>> OpenOutputStream(
115
+ const std::string& path,
116
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
117
+ Result<std::shared_ptr<io::OutputStream>> OpenAppendStream(
118
+ const std::string& path,
119
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
120
+
121
+ Result<std::string> NormalizePath(std::string path) override;
122
+
123
+ PyObject* handler() const { return handler_.obj(); }
124
+
125
+ private:
126
+ OwnedRefNoGIL handler_;
127
+ PyFileSystemVtable vtable_;
128
+ };
129
+
130
+ } // namespace arrow::py::fs
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/flight.h ADDED
@@ -0,0 +1,355 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <memory>
21
+ #include <string>
22
+ #include <vector>
23
+
24
+ #include "arrow/flight/api.h"
25
+ #include "arrow/ipc/dictionary.h"
26
+ #include "arrow/python/common.h"
27
+
28
+ #if defined(_WIN32) || defined(__CYGWIN__) // Windows
29
+ # if defined(_MSC_VER)
30
+ # pragma warning(disable : 4251)
31
+ # else
32
+ # pragma GCC diagnostic ignored "-Wattributes"
33
+ # endif
34
+
35
+ # ifdef ARROW_PYTHON_STATIC
36
+ # define ARROW_PYFLIGHT_EXPORT
37
+ # elif defined(ARROW_PYFLIGHT_EXPORTING)
38
+ # define ARROW_PYFLIGHT_EXPORT __declspec(dllexport)
39
+ # else
40
+ # define ARROW_PYFLIGHT_EXPORT __declspec(dllimport)
41
+ # endif
42
+
43
+ #else // Not Windows
44
+ # ifndef ARROW_PYFLIGHT_EXPORT
45
+ # define ARROW_PYFLIGHT_EXPORT __attribute__((visibility("default")))
46
+ # endif
47
+ #endif // Non-Windows
48
+
49
+ namespace arrow {
50
+
51
+ namespace py {
52
+
53
+ namespace flight {
54
+
55
+ ARROW_PYFLIGHT_EXPORT
56
+ extern const char* kPyServerMiddlewareName;
57
+
58
+ /// \brief A table of function pointers for calling from C++ into
59
+ /// Python.
60
+ class ARROW_PYFLIGHT_EXPORT PyFlightServerVtable {
61
+ public:
62
+ std::function<Status(PyObject*, const arrow::flight::ServerCallContext&,
63
+ const arrow::flight::Criteria*,
64
+ std::unique_ptr<arrow::flight::FlightListing>*)>
65
+ list_flights;
66
+ std::function<Status(PyObject*, const arrow::flight::ServerCallContext&,
67
+ const arrow::flight::FlightDescriptor&,
68
+ std::unique_ptr<arrow::flight::FlightInfo>*)>
69
+ get_flight_info;
70
+ std::function<Status(PyObject*, const arrow::flight::ServerCallContext&,
71
+ const arrow::flight::FlightDescriptor&,
72
+ std::unique_ptr<arrow::flight::SchemaResult>*)>
73
+ get_schema;
74
+ std::function<Status(PyObject*, const arrow::flight::ServerCallContext&,
75
+ const arrow::flight::Ticket&,
76
+ std::unique_ptr<arrow::flight::FlightDataStream>*)>
77
+ do_get;
78
+ std::function<Status(PyObject*, const arrow::flight::ServerCallContext&,
79
+ std::unique_ptr<arrow::flight::FlightMessageReader>,
80
+ std::unique_ptr<arrow::flight::FlightMetadataWriter>)>
81
+ do_put;
82
+ std::function<Status(PyObject*, const arrow::flight::ServerCallContext&,
83
+ std::unique_ptr<arrow::flight::FlightMessageReader>,
84
+ std::unique_ptr<arrow::flight::FlightMessageWriter>)>
85
+ do_exchange;
86
+ std::function<Status(PyObject*, const arrow::flight::ServerCallContext&,
87
+ const arrow::flight::Action&,
88
+ std::unique_ptr<arrow::flight::ResultStream>*)>
89
+ do_action;
90
+ std::function<Status(PyObject*, const arrow::flight::ServerCallContext&,
91
+ std::vector<arrow::flight::ActionType>*)>
92
+ list_actions;
93
+ };
94
+
95
+ class ARROW_PYFLIGHT_EXPORT PyServerAuthHandlerVtable {
96
+ public:
97
+ std::function<Status(PyObject*, arrow::flight::ServerAuthSender*,
98
+ arrow::flight::ServerAuthReader*)>
99
+ authenticate;
100
+ std::function<Status(PyObject*, const std::string&, std::string*)> is_valid;
101
+ };
102
+
103
+ class ARROW_PYFLIGHT_EXPORT PyClientAuthHandlerVtable {
104
+ public:
105
+ std::function<Status(PyObject*, arrow::flight::ClientAuthSender*,
106
+ arrow::flight::ClientAuthReader*)>
107
+ authenticate;
108
+ std::function<Status(PyObject*, std::string*)> get_token;
109
+ };
110
+
111
+ /// \brief A helper to implement an auth mechanism in Python.
112
+ class ARROW_PYFLIGHT_EXPORT PyServerAuthHandler
113
+ : public arrow::flight::ServerAuthHandler {
114
+ public:
115
+ explicit PyServerAuthHandler(PyObject* handler,
116
+ const PyServerAuthHandlerVtable& vtable);
117
+ Status Authenticate(const arrow::flight::ServerCallContext& context,
118
+ arrow::flight::ServerAuthSender* outgoing,
119
+ arrow::flight::ServerAuthReader* incoming) override;
120
+ Status IsValid(const std::string& token, std::string* peer_identity) override;
121
+
122
+ private:
123
+ OwnedRefNoGIL handler_;
124
+ PyServerAuthHandlerVtable vtable_;
125
+ };
126
+
127
+ /// \brief A helper to implement an auth mechanism in Python.
128
+ class ARROW_PYFLIGHT_EXPORT PyClientAuthHandler
129
+ : public arrow::flight::ClientAuthHandler {
130
+ public:
131
+ explicit PyClientAuthHandler(PyObject* handler,
132
+ const PyClientAuthHandlerVtable& vtable);
133
+ Status Authenticate(arrow::flight::ClientAuthSender* outgoing,
134
+ arrow::flight::ClientAuthReader* incoming) override;
135
+ Status GetToken(std::string* token) override;
136
+
137
+ private:
138
+ OwnedRefNoGIL handler_;
139
+ PyClientAuthHandlerVtable vtable_;
140
+ };
141
+
142
+ class ARROW_PYFLIGHT_EXPORT PyFlightServer : public arrow::flight::FlightServerBase {
143
+ public:
144
+ explicit PyFlightServer(PyObject* server, const PyFlightServerVtable& vtable);
145
+
146
+ // Like Serve(), but set up signals and invoke Python signal handlers
147
+ // if necessary. This function may return with a Python exception set.
148
+ Status ServeWithSignals();
149
+
150
+ Status ListFlights(const arrow::flight::ServerCallContext& context,
151
+ const arrow::flight::Criteria* criteria,
152
+ std::unique_ptr<arrow::flight::FlightListing>* listings) override;
153
+ Status GetFlightInfo(const arrow::flight::ServerCallContext& context,
154
+ const arrow::flight::FlightDescriptor& request,
155
+ std::unique_ptr<arrow::flight::FlightInfo>* info) override;
156
+ Status GetSchema(const arrow::flight::ServerCallContext& context,
157
+ const arrow::flight::FlightDescriptor& request,
158
+ std::unique_ptr<arrow::flight::SchemaResult>* result) override;
159
+ Status DoGet(const arrow::flight::ServerCallContext& context,
160
+ const arrow::flight::Ticket& request,
161
+ std::unique_ptr<arrow::flight::FlightDataStream>* stream) override;
162
+ Status DoPut(const arrow::flight::ServerCallContext& context,
163
+ std::unique_ptr<arrow::flight::FlightMessageReader> reader,
164
+ std::unique_ptr<arrow::flight::FlightMetadataWriter> writer) override;
165
+ Status DoExchange(const arrow::flight::ServerCallContext& context,
166
+ std::unique_ptr<arrow::flight::FlightMessageReader> reader,
167
+ std::unique_ptr<arrow::flight::FlightMessageWriter> writer) override;
168
+ Status DoAction(const arrow::flight::ServerCallContext& context,
169
+ const arrow::flight::Action& action,
170
+ std::unique_ptr<arrow::flight::ResultStream>* result) override;
171
+ Status ListActions(const arrow::flight::ServerCallContext& context,
172
+ std::vector<arrow::flight::ActionType>* actions) override;
173
+
174
+ // Breaks the reference cycle between the C++ FlightServerBase and the Python object.
175
+ void ReleasePythonServerRef();
176
+
177
+ private:
178
+ OwnedRefNoGIL server_;
179
+ PyFlightServerVtable vtable_;
180
+ };
181
+
182
+ /// \brief A callback that obtains the next result from a Flight action.
183
+ typedef std::function<Status(PyObject*, std::unique_ptr<arrow::flight::Result>*)>
184
+ PyFlightResultStreamCallback;
185
+
186
+ /// \brief A ResultStream built around a Python callback.
187
+ class ARROW_PYFLIGHT_EXPORT PyFlightResultStream : public arrow::flight::ResultStream {
188
+ public:
189
+ /// \brief Construct a FlightResultStream from a Python object and callback.
190
+ /// Must only be called while holding the GIL.
191
+ explicit PyFlightResultStream(PyObject* generator,
192
+ PyFlightResultStreamCallback callback);
193
+ arrow::Result<std::unique_ptr<arrow::flight::Result>> Next() override;
194
+
195
+ private:
196
+ OwnedRefNoGIL generator_;
197
+ PyFlightResultStreamCallback callback_;
198
+ };
199
+
200
+ /// \brief A wrapper around a FlightDataStream that keeps alive a
201
+ /// Python object backing it.
202
+ class ARROW_PYFLIGHT_EXPORT PyFlightDataStream : public arrow::flight::FlightDataStream {
203
+ public:
204
+ /// \brief Construct a FlightDataStream from a Python object and underlying stream.
205
+ /// Must only be called while holding the GIL.
206
+ explicit PyFlightDataStream(PyObject* data_source,
207
+ std::unique_ptr<arrow::flight::FlightDataStream> stream);
208
+
209
+ std::shared_ptr<Schema> schema() override;
210
+ arrow::Result<arrow::flight::FlightPayload> GetSchemaPayload() override;
211
+ arrow::Result<arrow::flight::FlightPayload> Next() override;
212
+
213
+ private:
214
+ OwnedRefNoGIL data_source_;
215
+ std::unique_ptr<arrow::flight::FlightDataStream> stream_;
216
+ };
217
+
218
+ class ARROW_PYFLIGHT_EXPORT PyServerMiddlewareFactory
219
+ : public arrow::flight::ServerMiddlewareFactory {
220
+ public:
221
+ /// \brief A callback to create the middleware instance in Python
222
+ typedef std::function<Status(
223
+ PyObject*, const arrow::flight::CallInfo& info,
224
+ const arrow::flight::CallHeaders& incoming_headers,
225
+ std::shared_ptr<arrow::flight::ServerMiddleware>* middleware)>
226
+ StartCallCallback;
227
+
228
+ /// \brief Must only be called while holding the GIL.
229
+ explicit PyServerMiddlewareFactory(PyObject* factory, StartCallCallback start_call);
230
+
231
+ Status StartCall(const arrow::flight::CallInfo& info,
232
+ const arrow::flight::ServerCallContext& context,
233
+ std::shared_ptr<arrow::flight::ServerMiddleware>* middleware) override;
234
+
235
+ private:
236
+ OwnedRefNoGIL factory_;
237
+ StartCallCallback start_call_;
238
+ };
239
+
240
+ class ARROW_PYFLIGHT_EXPORT PyServerMiddleware : public arrow::flight::ServerMiddleware {
241
+ public:
242
+ typedef std::function<Status(PyObject*,
243
+ arrow::flight::AddCallHeaders* outgoing_headers)>
244
+ SendingHeadersCallback;
245
+ typedef std::function<Status(PyObject*, const Status& status)> CallCompletedCallback;
246
+
247
+ struct Vtable {
248
+ SendingHeadersCallback sending_headers;
249
+ CallCompletedCallback call_completed;
250
+ };
251
+
252
+ /// \brief Must only be called while holding the GIL.
253
+ explicit PyServerMiddleware(PyObject* middleware, Vtable vtable);
254
+
255
+ void SendingHeaders(arrow::flight::AddCallHeaders* outgoing_headers) override;
256
+ void CallCompleted(const Status& status) override;
257
+ std::string name() const override;
258
+ /// \brief Get the underlying Python object.
259
+ PyObject* py_object() const;
260
+
261
+ private:
262
+ OwnedRefNoGIL middleware_;
263
+ Vtable vtable_;
264
+ };
265
+
266
+ class ARROW_PYFLIGHT_EXPORT PyClientMiddlewareFactory
267
+ : public arrow::flight::ClientMiddlewareFactory {
268
+ public:
269
+ /// \brief A callback to create the middleware instance in Python
270
+ typedef std::function<Status(
271
+ PyObject*, const arrow::flight::CallInfo& info,
272
+ std::unique_ptr<arrow::flight::ClientMiddleware>* middleware)>
273
+ StartCallCallback;
274
+
275
+ /// \brief Must only be called while holding the GIL.
276
+ explicit PyClientMiddlewareFactory(PyObject* factory, StartCallCallback start_call);
277
+
278
+ void StartCall(const arrow::flight::CallInfo& info,
279
+ std::unique_ptr<arrow::flight::ClientMiddleware>* middleware) override;
280
+
281
+ private:
282
+ OwnedRefNoGIL factory_;
283
+ StartCallCallback start_call_;
284
+ };
285
+
286
+ class ARROW_PYFLIGHT_EXPORT PyClientMiddleware : public arrow::flight::ClientMiddleware {
287
+ public:
288
+ typedef std::function<Status(PyObject*,
289
+ arrow::flight::AddCallHeaders* outgoing_headers)>
290
+ SendingHeadersCallback;
291
+ typedef std::function<Status(PyObject*,
292
+ const arrow::flight::CallHeaders& incoming_headers)>
293
+ ReceivedHeadersCallback;
294
+ typedef std::function<Status(PyObject*, const Status& status)> CallCompletedCallback;
295
+
296
+ struct Vtable {
297
+ SendingHeadersCallback sending_headers;
298
+ ReceivedHeadersCallback received_headers;
299
+ CallCompletedCallback call_completed;
300
+ };
301
+
302
+ /// \brief Must only be called while holding the GIL.
303
+ explicit PyClientMiddleware(PyObject* factory, Vtable vtable);
304
+
305
+ void SendingHeaders(arrow::flight::AddCallHeaders* outgoing_headers) override;
306
+ void ReceivedHeaders(const arrow::flight::CallHeaders& incoming_headers) override;
307
+ void CallCompleted(const Status& status) override;
308
+
309
+ private:
310
+ OwnedRefNoGIL middleware_;
311
+ Vtable vtable_;
312
+ };
313
+
314
+ /// \brief A callback that obtains the next payload from a Flight result stream.
315
+ typedef std::function<Status(PyObject*, arrow::flight::FlightPayload*)>
316
+ PyGeneratorFlightDataStreamCallback;
317
+
318
+ /// \brief A FlightDataStream built around a Python callback.
319
+ class ARROW_PYFLIGHT_EXPORT PyGeneratorFlightDataStream
320
+ : public arrow::flight::FlightDataStream {
321
+ public:
322
+ /// \brief Construct a FlightDataStream from a Python object and underlying stream.
323
+ /// Must only be called while holding the GIL.
324
+ explicit PyGeneratorFlightDataStream(PyObject* generator,
325
+ std::shared_ptr<arrow::Schema> schema,
326
+ PyGeneratorFlightDataStreamCallback callback,
327
+ const ipc::IpcWriteOptions& options);
328
+ std::shared_ptr<Schema> schema() override;
329
+ arrow::Result<arrow::flight::FlightPayload> GetSchemaPayload() override;
330
+ arrow::Result<arrow::flight::FlightPayload> Next() override;
331
+
332
+ private:
333
+ OwnedRefNoGIL generator_;
334
+ std::shared_ptr<arrow::Schema> schema_;
335
+ ipc::DictionaryFieldMapper mapper_;
336
+ ipc::IpcWriteOptions options_;
337
+ PyGeneratorFlightDataStreamCallback callback_;
338
+ };
339
+
340
+ ARROW_PYFLIGHT_EXPORT
341
+ Status CreateFlightInfo(const std::shared_ptr<arrow::Schema>& schema,
342
+ const arrow::flight::FlightDescriptor& descriptor,
343
+ const std::vector<arrow::flight::FlightEndpoint>& endpoints,
344
+ int64_t total_records, int64_t total_bytes, bool ordered,
345
+ const std::string& app_metadata,
346
+ std::unique_ptr<arrow::flight::FlightInfo>* out);
347
+
348
+ /// \brief Create a SchemaResult from schema.
349
+ ARROW_PYFLIGHT_EXPORT
350
+ Status CreateSchemaResult(const std::shared_ptr<arrow::Schema>& schema,
351
+ std::unique_ptr<arrow::flight::SchemaResult>* out);
352
+
353
+ } // namespace flight
354
+ } // namespace py
355
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/gdb.h ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/python/visibility.h"
21
+
22
+ namespace arrow {
23
+ namespace gdb {
24
+
25
+ ARROW_PYTHON_EXPORT
26
+ void TestSession();
27
+
28
+ } // namespace gdb
29
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/helpers.h ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/python/platform.h"
21
+
22
+ #include <limits>
23
+ #include <memory>
24
+ #include <string>
25
+ #include <string_view>
26
+ #include <utility>
27
+
28
+ #include "arrow/python/numpy_interop.h"
29
+
30
+ #include "arrow/python/visibility.h"
31
+ #include "arrow/type.h"
32
+ #include "arrow/util/macros.h"
33
+
34
+ namespace arrow {
35
+
36
+ namespace py {
37
+
38
+ class OwnedRef;
39
+
40
+ // \brief Get an arrow DataType instance from Arrow's Type::type enum
41
+ // \param[in] type One of the values of Arrow's Type::type enum
42
+ // \return A shared pointer to DataType
43
+ ARROW_PYTHON_EXPORT std::shared_ptr<DataType> GetPrimitiveType(Type::type type);
44
+
45
+ // \brief Construct a Python float object from a half-float uint16_t value.
46
+ ARROW_PYTHON_EXPORT PyObject* PyFloat_FromHalf(uint16_t value);
47
+
48
+ // \brief Convert a Python object to a half-float uint16_t value.
49
+ ARROW_PYTHON_EXPORT Result<uint16_t> PyFloat_AsHalf(PyObject* obj);
50
+
51
+ namespace internal {
52
+
53
+ // \brief Check that a Python module has been already imported
54
+ // \param[in] module_name The name of the module
55
+ Result<bool> IsModuleImported(const std::string& module_name);
56
+
57
+ // \brief Import a Python module
58
+ // \param[in] module_name The name of the module
59
+ // \param[out] ref The OwnedRef containing the module PyObject*
60
+ ARROW_PYTHON_EXPORT
61
+ Status ImportModule(const std::string& module_name, OwnedRef* ref);
62
+
63
+ // \brief Import an object from a Python module
64
+ // \param[in] module A Python module
65
+ // \param[in] name The name of the object to import
66
+ // \param[out] ref The OwnedRef containing the \c name attribute of the Python module \c
67
+ // module
68
+ ARROW_PYTHON_EXPORT
69
+ Status ImportFromModule(PyObject* module, const std::string& name, OwnedRef* ref);
70
+
71
+ // \brief Check whether obj is an integer, independent of Python versions.
72
+ inline bool IsPyInteger(PyObject* obj) { return PyLong_Check(obj); }
73
+
74
+ // \brief Import symbols from pandas that we need for various type-checking,
75
+ // like pandas.NaT or pandas.NA
76
+ void InitPandasStaticData();
77
+
78
+ // \brief Use pandas missing value semantics to check if a value is null
79
+ ARROW_PYTHON_EXPORT
80
+ bool PandasObjectIsNull(PyObject* obj);
81
+
82
+ // \brief Check that obj is a pandas.Timedelta instance
83
+ ARROW_PYTHON_EXPORT
84
+ bool IsPandasTimedelta(PyObject* obj);
85
+
86
+ // \brief Check that obj is a pandas.Timestamp instance
87
+ bool IsPandasTimestamp(PyObject* obj);
88
+
89
+ // \brief Returned a borrowed reference to the pandas.tseries.offsets.DateOffset
90
+ PyObject* BorrowPandasDataOffsetType();
91
+
92
+ // \brief Check whether obj is a floating-point NaN
93
+ ARROW_PYTHON_EXPORT
94
+ bool PyFloat_IsNaN(PyObject* obj);
95
+
96
+ // \brief Check whether obj is a uuid.UUID instance
97
+ ARROW_PYTHON_EXPORT
98
+ bool IsPyUuid(PyObject* obj);
99
+
100
+ // \brief Construct a uuid.UUID from 16 raw bytes
101
+ ARROW_PYTHON_EXPORT
102
+ Result<PyObject*> UuidFromBytes(std::string_view bytes, PyObject* kwargs);
103
+
104
+ inline bool IsPyBinary(PyObject* obj) {
105
+ return PyBytes_Check(obj) || PyByteArray_Check(obj) || PyMemoryView_Check(obj);
106
+ }
107
+
108
+ // \brief Convert a Python integer into a C integer
109
+ // \param[in] obj A Python integer
110
+ // \param[out] out A pointer to a C integer to hold the result of the conversion
111
+ // \return The status of the operation
112
+ template <typename Int>
113
+ Status CIntFromPython(PyObject* obj, Int* out, const std::string& overflow_message = "");
114
+
115
+ // \brief Convert a Python unicode string to a std::string
116
+ ARROW_PYTHON_EXPORT
117
+ Status PyUnicode_AsStdString(PyObject* obj, std::string* out);
118
+
119
+ // \brief Convert a Python bytes object to a std::string
120
+ ARROW_PYTHON_EXPORT
121
+ std::string PyBytes_AsStdString(PyObject* obj);
122
+
123
+ // \brief Call str() on the given object and return the result as a std::string
124
+ ARROW_PYTHON_EXPORT
125
+ Status PyObject_StdStringStr(PyObject* obj, std::string* out);
126
+
127
+ // \brief Return the repr() of the given object (always succeeds)
128
+ ARROW_PYTHON_EXPORT
129
+ std::string PyObject_StdStringRepr(PyObject* obj);
130
+
131
+ // \brief Cast the given size to int32_t, with error checking
132
+ inline Status CastSize(Py_ssize_t size, int32_t* out,
133
+ const char* error_msg = "Maximum size exceeded (2GB)") {
134
+ // size is assumed to be positive
135
+ if (size > std::numeric_limits<int32_t>::max()) {
136
+ return Status::Invalid(error_msg);
137
+ }
138
+ *out = static_cast<int32_t>(size);
139
+ return Status::OK();
140
+ }
141
+
142
+ inline Status CastSize(Py_ssize_t size, int64_t* out, const char* error_msg = NULLPTR) {
143
+ // size is assumed to be positive
144
+ *out = static_cast<int64_t>(size);
145
+ return Status::OK();
146
+ }
147
+
148
+ // \brief Print the Python object's __str__ form along with the passed error
149
+ // message
150
+ ARROW_PYTHON_EXPORT
151
+ Status InvalidValue(PyObject* obj, const std::string& why);
152
+
153
+ ARROW_PYTHON_EXPORT
154
+ Status InvalidType(PyObject* obj, const std::string& why);
155
+
156
+ ARROW_PYTHON_EXPORT
157
+ Status IntegerScalarToDoubleSafe(PyObject* obj, double* result);
158
+ ARROW_PYTHON_EXPORT
159
+ Status IntegerScalarToFloat32Safe(PyObject* obj, float* result);
160
+
161
+ // \brief Print Python object __repr__
162
+ void DebugPrint(PyObject* obj);
163
+
164
+ } // namespace internal
165
+ } // namespace py
166
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/inference.h ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // Functions for converting between CPython built-in data structures and Arrow
19
+ // data structures
20
+
21
+ #pragma once
22
+
23
+ #include "arrow/python/platform.h"
24
+
25
+ #include <memory>
26
+
27
+ #include "arrow/python/visibility.h"
28
+ #include "arrow/type.h"
29
+ #include "arrow/util/macros.h"
30
+
31
+ #include "common.h"
32
+
33
+ namespace arrow {
34
+
35
+ class Array;
36
+ class Status;
37
+
38
+ namespace py {
39
+
40
+ // These functions take a sequence input, not arbitrary iterables
41
+
42
+ /// \brief Infer Arrow type from a Python sequence
43
+ /// \param[in] obj the sequence of values
44
+ /// \param[in] mask an optional mask where True values are null. May
45
+ /// be nullptr
46
+ /// \param[in] pandas_null_sentinels use pandas's null value markers
47
+ ARROW_PYTHON_EXPORT
48
+ Result<std::shared_ptr<arrow::DataType>> InferArrowType(PyObject* obj, PyObject* mask,
49
+ bool pandas_null_sentinels);
50
+
51
+ /// Checks whether the passed Python object is a boolean scalar
52
+ ARROW_PYTHON_EXPORT
53
+ bool IsPyBool(PyObject* obj);
54
+
55
+ /// Checks whether the passed Python object is an integer scalar
56
+ ARROW_PYTHON_EXPORT
57
+ bool IsPyInt(PyObject* obj);
58
+
59
+ /// Checks whether the passed Python object is a float scalar
60
+ ARROW_PYTHON_EXPORT
61
+ bool IsPyFloat(PyObject* obj);
62
+
63
+ } // namespace py
64
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/io.h ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <memory>
21
+
22
+ #include "arrow/io/interfaces.h"
23
+ #include "arrow/io/transform.h"
24
+
25
+ #include "arrow/python/common.h"
26
+ #include "arrow/python/visibility.h"
27
+
28
+ namespace arrow {
29
+ namespace py {
30
+
31
+ class ARROW_NO_EXPORT PythonFile;
32
+
33
+ class ARROW_PYTHON_EXPORT PyReadableFile : public io::RandomAccessFile {
34
+ public:
35
+ explicit PyReadableFile(PyObject* file);
36
+ ~PyReadableFile() override;
37
+
38
+ Status Close() override;
39
+ Status Abort() override;
40
+ bool closed() const override;
41
+
42
+ Result<int64_t> Read(int64_t nbytes, void* out) override;
43
+ Result<std::shared_ptr<Buffer>> Read(int64_t nbytes) override;
44
+
45
+ // Thread-safe version
46
+ Result<int64_t> ReadAt(int64_t position, int64_t nbytes, void* out) override;
47
+
48
+ // Thread-safe version
49
+ Result<std::shared_ptr<Buffer>> ReadAt(int64_t position, int64_t nbytes) override;
50
+
51
+ Result<int64_t> GetSize() override;
52
+
53
+ Status Seek(int64_t position) override;
54
+
55
+ Result<int64_t> Tell() const override;
56
+
57
+ private:
58
+ std::unique_ptr<PythonFile> file_;
59
+ };
60
+
61
+ class ARROW_PYTHON_EXPORT PyOutputStream : public io::OutputStream {
62
+ public:
63
+ explicit PyOutputStream(PyObject* file);
64
+ ~PyOutputStream() override;
65
+
66
+ Status Close() override;
67
+ Status Abort() override;
68
+ bool closed() const override;
69
+ Result<int64_t> Tell() const override;
70
+ Status Write(const void* data, int64_t nbytes) override;
71
+ Status Write(const std::shared_ptr<Buffer>& buffer) override;
72
+
73
+ private:
74
+ std::unique_ptr<PythonFile> file_;
75
+ int64_t position_;
76
+ };
77
+
78
+ // TODO(wesm): seekable output files
79
+
80
+ // A Buffer subclass that keeps a PyObject reference throughout its
81
+ // lifetime, such that the Python object is kept alive as long as the
82
+ // C++ buffer is still needed.
83
+ // Keeping the reference in a Python wrapper would be incorrect as
84
+ // the Python wrapper can get destroyed even though the wrapped C++
85
+ // buffer is still alive (ARROW-2270).
86
+ class ARROW_PYTHON_EXPORT PyForeignBuffer : public Buffer {
87
+ public:
88
+ static Status Make(const uint8_t* data, int64_t size, PyObject* base,
89
+ std::shared_ptr<Buffer>* out);
90
+
91
+ private:
92
+ PyForeignBuffer(const uint8_t* data, int64_t size, PyObject* base)
93
+ : Buffer(data, size) {
94
+ Py_INCREF(base);
95
+ base_.reset(base);
96
+ }
97
+
98
+ OwnedRefNoGIL base_;
99
+ };
100
+
101
+ // All this rigamarole because Cython is really poor with std::function<>
102
+
103
+ using TransformCallback = std::function<void(
104
+ PyObject*, const std::shared_ptr<Buffer>& src, std::shared_ptr<Buffer>* out)>;
105
+
106
+ struct TransformInputStreamVTable {
107
+ TransformCallback transform;
108
+ };
109
+
110
+ ARROW_PYTHON_EXPORT
111
+ std::shared_ptr<::arrow::io::InputStream> MakeTransformInputStream(
112
+ std::shared_ptr<::arrow::io::InputStream> wrapped, TransformInputStreamVTable vtable,
113
+ PyObject* arg);
114
+
115
+ using StreamWrapFunc = std::function<Result<std::shared_ptr<io::InputStream>>(
116
+ std::shared_ptr<io::InputStream>)>;
117
+ ARROW_PYTHON_EXPORT
118
+ std::shared_ptr<StreamWrapFunc> MakeStreamTransformFunc(TransformInputStreamVTable vtable,
119
+ PyObject* handler);
120
+ } // namespace py
121
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/ipc.h ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <memory>
21
+
22
+ #include "arrow/python/common.h"
23
+ #include "arrow/python/visibility.h"
24
+ #include "arrow/record_batch.h"
25
+ #include "arrow/result.h"
26
+ #include "arrow/util/macros.h"
27
+
28
+ namespace arrow {
29
+ namespace py {
30
+
31
+ class ARROW_PYTHON_EXPORT PyRecordBatchReader : public RecordBatchReader {
32
+ public:
33
+ std::shared_ptr<Schema> schema() const override;
34
+
35
+ Status ReadNext(std::shared_ptr<RecordBatch>* batch) override;
36
+
37
+ // For use from Cython
38
+ // Assumes that `iterable` is borrowed
39
+ static Result<std::shared_ptr<RecordBatchReader>> Make(std::shared_ptr<Schema>,
40
+ PyObject* iterable);
41
+
42
+ protected:
43
+ PyRecordBatchReader();
44
+
45
+ Status Init(std::shared_ptr<Schema>, PyObject* iterable);
46
+
47
+ std::shared_ptr<Schema> schema_;
48
+ OwnedRefNoGIL iterator_;
49
+ };
50
+
51
+ class ARROW_PYTHON_EXPORT CastingRecordBatchReader : public RecordBatchReader {
52
+ public:
53
+ std::shared_ptr<Schema> schema() const override;
54
+
55
+ Status ReadNext(std::shared_ptr<RecordBatch>* batch) override;
56
+
57
+ static Result<std::shared_ptr<RecordBatchReader>> Make(
58
+ std::shared_ptr<RecordBatchReader> parent, std::shared_ptr<Schema> schema);
59
+
60
+ Status Close() override;
61
+
62
+ protected:
63
+ CastingRecordBatchReader();
64
+
65
+ Status Init(std::shared_ptr<RecordBatchReader> parent, std::shared_ptr<Schema> schema);
66
+
67
+ std::shared_ptr<RecordBatchReader> parent_;
68
+ std::shared_ptr<Schema> schema_;
69
+ };
70
+
71
+ } // namespace py
72
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/iterators.h ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <utility>
21
+
22
+ #include "arrow/array/array_primitive.h"
23
+
24
+ #include "arrow/python/common.h"
25
+ #include "arrow/python/numpy_init.h"
26
+ #include "arrow/python/numpy_internal.h"
27
+
28
+ namespace arrow {
29
+ namespace py {
30
+ namespace internal {
31
+
32
+ using arrow::internal::checked_cast;
33
+
34
+ // Visit the Python sequence, calling the given callable on each element. If
35
+ // the callable returns a non-OK status, iteration stops and the status is
36
+ // returned.
37
+ //
38
+ // The call signature for Visitor must be
39
+ //
40
+ // Visit(PyObject* obj, int64_t index, bool* keep_going)
41
+ //
42
+ // If keep_going is set to false, the iteration terminates
43
+ template <class VisitorFunc>
44
+ inline Status VisitSequenceGeneric(PyObject* obj, int64_t offset, VisitorFunc&& func) {
45
+ // VisitorFunc may set to false to terminate iteration
46
+ bool keep_going = true;
47
+
48
+ if (has_numpy() && PyArray_Check(obj)) {
49
+ PyArrayObject* arr_obj = reinterpret_cast<PyArrayObject*>(obj);
50
+ if (PyArray_NDIM(arr_obj) != 1) {
51
+ return Status::Invalid("Only 1D arrays accepted");
52
+ }
53
+
54
+ if (PyArray_DESCR(arr_obj)->type_num == NPY_OBJECT) {
55
+ // It's an array object, we can fetch object pointers directly
56
+ const Ndarray1DIndexer<PyObject*> objects(arr_obj);
57
+ for (int64_t i = offset; keep_going && i < objects.size(); ++i) {
58
+ RETURN_NOT_OK(func(objects[i], i, &keep_going));
59
+ }
60
+ return Status::OK();
61
+ }
62
+ // It's a non-object array, fall back on regular sequence access.
63
+ // (note PyArray_GETITEM() is slightly different: it returns standard
64
+ // Python types, not Numpy scalar types)
65
+ // This code path is inefficient: callers should implement dedicated
66
+ // logic for non-object arrays.
67
+ }
68
+
69
+ if (PySequence_Check(obj)) {
70
+ #ifdef Py_GIL_DISABLED
71
+ if (PyTuple_Check(obj)) {
72
+ #else
73
+ if (PyList_Check(obj) || PyTuple_Check(obj)) {
74
+ #endif
75
+ // Use fast item access
76
+ const Py_ssize_t size = PySequence_Fast_GET_SIZE(obj);
77
+ for (Py_ssize_t i = offset; keep_going && i < size; ++i) {
78
+ PyObject* value = PySequence_Fast_GET_ITEM(obj, i);
79
+ RETURN_NOT_OK(func(value, static_cast<int64_t>(i), &keep_going));
80
+ }
81
+ } else {
82
+ // Regular sequence: avoid making a potentially large copy
83
+ const Py_ssize_t size = PySequence_Size(obj);
84
+ RETURN_IF_PYERROR();
85
+ for (Py_ssize_t i = offset; keep_going && i < size; ++i) {
86
+ OwnedRef value_ref(PySequence_ITEM(obj, i));
87
+ RETURN_IF_PYERROR();
88
+ RETURN_NOT_OK(func(value_ref.obj(), static_cast<int64_t>(i), &keep_going));
89
+ }
90
+ }
91
+ } else {
92
+ return Status::TypeError("Object is not a sequence");
93
+ }
94
+ return Status::OK();
95
+ }
96
+
97
+ // Visit sequence with no null mask
98
+ template <class VisitorFunc>
99
+ inline Status VisitSequence(PyObject* obj, int64_t offset, VisitorFunc&& func) {
100
+ return VisitSequenceGeneric(
101
+ obj, offset, [&func](PyObject* value, int64_t i /* unused */, bool* keep_going) {
102
+ return func(value, keep_going);
103
+ });
104
+ }
105
+
106
+ /// Visit sequence with null mask
107
+ template <class VisitorFunc>
108
+ inline Status VisitSequenceMasked(PyObject* obj, PyObject* mo, int64_t offset,
109
+ VisitorFunc&& func) {
110
+ if (has_numpy() && PyArray_Check(mo)) {
111
+ PyArrayObject* mask = reinterpret_cast<PyArrayObject*>(mo);
112
+ if (PyArray_NDIM(mask) != 1) {
113
+ return Status::Invalid("Mask must be 1D array");
114
+ }
115
+ if (PyArray_SIZE(mask) != static_cast<int64_t>(PySequence_Size(obj))) {
116
+ return Status::Invalid("Mask was a different length from sequence being converted");
117
+ }
118
+
119
+ const int dtype = fix_numpy_type_num(PyArray_DESCR(mask)->type_num);
120
+ if (dtype == NPY_BOOL) {
121
+ Ndarray1DIndexer<uint8_t> mask_values(mask);
122
+
123
+ return VisitSequenceGeneric(
124
+ obj, offset,
125
+ [&func, &mask_values](PyObject* value, int64_t i, bool* keep_going) {
126
+ return func(value, mask_values[i], keep_going);
127
+ });
128
+ } else {
129
+ return Status::TypeError("Mask must be boolean dtype");
130
+ }
131
+ } else if (py::is_array(mo)) {
132
+ auto unwrap_mask_result = unwrap_array(mo);
133
+ ARROW_RETURN_NOT_OK(unwrap_mask_result);
134
+ std::shared_ptr<Array> mask_ = unwrap_mask_result.ValueOrDie();
135
+ if (mask_->type_id() != Type::type::BOOL) {
136
+ return Status::TypeError("Mask must be an array of booleans");
137
+ }
138
+
139
+ if (mask_->length() != PySequence_Size(obj)) {
140
+ return Status::Invalid("Mask was a different length from sequence being converted");
141
+ }
142
+
143
+ if (mask_->null_count() != 0) {
144
+ return Status::TypeError("Mask must be an array of booleans");
145
+ }
146
+
147
+ BooleanArray* boolmask = checked_cast<BooleanArray*>(mask_.get());
148
+ return VisitSequenceGeneric(
149
+ obj, offset, [&func, &boolmask](PyObject* value, int64_t i, bool* keep_going) {
150
+ return func(value, boolmask->Value(i), keep_going);
151
+ });
152
+ } else if (PySequence_Check(mo)) {
153
+ if (PySequence_Size(mo) != PySequence_Size(obj)) {
154
+ return Status::Invalid("Mask was a different length from sequence being converted");
155
+ }
156
+ RETURN_IF_PYERROR();
157
+
158
+ return VisitSequenceGeneric(
159
+ obj, offset, [&func, &mo](PyObject* value, int64_t i, bool* keep_going) {
160
+ OwnedRef value_ref(PySequence_ITEM(mo, i));
161
+ if (!PyBool_Check(value_ref.obj()))
162
+ return Status::TypeError("Mask must be a sequence of booleans");
163
+ return func(value, value_ref.obj() == Py_True, keep_going);
164
+ });
165
+ } else {
166
+ return Status::Invalid("Null mask must be a NumPy array, Arrow array or a Sequence");
167
+ }
168
+
169
+ return Status::OK();
170
+ }
171
+
172
+ // Like IterateSequence, but accepts any generic iterable (including
173
+ // non-restartable iterators, e.g. generators).
174
+ //
175
+ // The call signature for VisitorFunc must be Visit(PyObject*, bool*
176
+ // keep_going). If keep_going is set to false, the iteration terminates
177
+ template <class VisitorFunc>
178
+ inline Status VisitIterable(PyObject* obj, VisitorFunc&& func) {
179
+ if (PySequence_Check(obj)) {
180
+ // Numpy arrays fall here as well
181
+ return VisitSequence(obj, /*offset=*/0, std::forward<VisitorFunc>(func));
182
+ }
183
+ // Fall back on the iterator protocol
184
+ OwnedRef iter_ref(PyObject_GetIter(obj));
185
+ PyObject* iter = iter_ref.obj();
186
+ RETURN_IF_PYERROR();
187
+ PyObject* value;
188
+
189
+ bool keep_going = true;
190
+ while (keep_going && (value = PyIter_Next(iter))) {
191
+ OwnedRef value_ref(value);
192
+ RETURN_NOT_OK(func(value_ref.obj(), &keep_going));
193
+ }
194
+ RETURN_IF_PYERROR(); // __next__() might have raised
195
+ return Status::OK();
196
+ }
197
+
198
+ } // namespace internal
199
+ } // namespace py
200
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/lib.h ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Generated by Cython 3.3.0 */
2
+
3
+ #ifndef __PYX_HAVE__pyarrow__lib
4
+ #define __PYX_HAVE__pyarrow__lib
5
+
6
+ #include "Python.h"
7
+
8
+ #ifndef __PYX_HAVE_API__pyarrow__lib
9
+
10
+ #ifdef CYTHON_EXTERN_C
11
+ #undef __PYX_EXTERN_C
12
+ #define __PYX_EXTERN_C CYTHON_EXTERN_C
13
+ #elif defined(__PYX_EXTERN_C)
14
+ #ifdef _MSC_VER
15
+ #pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.")
16
+ #else
17
+ #warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.
18
+ #endif
19
+ #else
20
+ #define __PYX_EXTERN_C extern "C++"
21
+ #endif
22
+
23
+ #ifndef DL_IMPORT
24
+ #define DL_IMPORT(_T) _T
25
+ #endif
26
+
27
+ __PYX_EXTERN_C PyObject *pyarrow_wrap_buffer(std::shared_ptr< arrow::Buffer> const &);
28
+ __PYX_EXTERN_C PyObject *pyarrow_wrap_resizable_buffer(std::shared_ptr< arrow::ResizableBuffer> const &);
29
+ __PYX_EXTERN_C PyObject *pyarrow_wrap_data_type(std::shared_ptr< arrow::DataType> const &);
30
+ __PYX_EXTERN_C PyObject *pyarrow_wrap_field(std::shared_ptr< arrow::Field> const &);
31
+ __PYX_EXTERN_C PyObject *pyarrow_wrap_schema(std::shared_ptr< arrow::Schema> const &);
32
+ __PYX_EXTERN_C PyObject *pyarrow_wrap_scalar(std::shared_ptr< arrow::Scalar> const &);
33
+ __PYX_EXTERN_C PyObject *pyarrow_wrap_array(std::shared_ptr< arrow::Array> const &);
34
+ __PYX_EXTERN_C PyObject *pyarrow_wrap_chunked_array(std::shared_ptr< arrow::ChunkedArray> const &);
35
+ __PYX_EXTERN_C PyObject *pyarrow_wrap_sparse_coo_tensor(std::shared_ptr< arrow::SparseCOOTensor> const &);
36
+ __PYX_EXTERN_C PyObject *pyarrow_wrap_sparse_csc_matrix(std::shared_ptr< arrow::SparseCSCMatrix> const &);
37
+ __PYX_EXTERN_C PyObject *pyarrow_wrap_sparse_csf_tensor(std::shared_ptr< arrow::SparseCSFTensor> const &);
38
+ __PYX_EXTERN_C PyObject *pyarrow_wrap_sparse_csr_matrix(std::shared_ptr< arrow::SparseCSRMatrix> const &);
39
+ __PYX_EXTERN_C PyObject *pyarrow_wrap_tensor(std::shared_ptr< arrow::Tensor> const &);
40
+ __PYX_EXTERN_C PyObject *pyarrow_wrap_batch(std::shared_ptr< arrow::RecordBatch> const &);
41
+ __PYX_EXTERN_C PyObject *pyarrow_wrap_table(std::shared_ptr< arrow::Table> const &);
42
+ __PYX_EXTERN_C std::shared_ptr< arrow::Buffer> pyarrow_unwrap_buffer(PyObject *);
43
+ __PYX_EXTERN_C std::shared_ptr< arrow::DataType> pyarrow_unwrap_data_type(PyObject *);
44
+ __PYX_EXTERN_C std::shared_ptr< arrow::Field> pyarrow_unwrap_field(PyObject *);
45
+ __PYX_EXTERN_C std::shared_ptr< arrow::Schema> pyarrow_unwrap_schema(PyObject *);
46
+ __PYX_EXTERN_C std::shared_ptr< arrow::Scalar> pyarrow_unwrap_scalar(PyObject *);
47
+ __PYX_EXTERN_C std::shared_ptr< arrow::Array> pyarrow_unwrap_array(PyObject *);
48
+ __PYX_EXTERN_C std::shared_ptr< arrow::ChunkedArray> pyarrow_unwrap_chunked_array(PyObject *);
49
+ __PYX_EXTERN_C std::shared_ptr< arrow::SparseCOOTensor> pyarrow_unwrap_sparse_coo_tensor(PyObject *);
50
+ __PYX_EXTERN_C std::shared_ptr< arrow::SparseCSCMatrix> pyarrow_unwrap_sparse_csc_matrix(PyObject *);
51
+ __PYX_EXTERN_C std::shared_ptr< arrow::SparseCSFTensor> pyarrow_unwrap_sparse_csf_tensor(PyObject *);
52
+ __PYX_EXTERN_C std::shared_ptr< arrow::SparseCSRMatrix> pyarrow_unwrap_sparse_csr_matrix(PyObject *);
53
+ __PYX_EXTERN_C std::shared_ptr< arrow::Tensor> pyarrow_unwrap_tensor(PyObject *);
54
+ __PYX_EXTERN_C std::shared_ptr< arrow::RecordBatch> pyarrow_unwrap_batch(PyObject *);
55
+ __PYX_EXTERN_C std::shared_ptr< arrow::Table> pyarrow_unwrap_table(PyObject *);
56
+
57
+ #endif /* !__PYX_HAVE_API__pyarrow__lib */
58
+
59
+ /* WARNING: the interface of the module init function changed in CPython 3.5. */
60
+ /* It now returns a PyModuleDef instance instead of a PyModule instance. */
61
+
62
+ /* WARNING: Use PyImport_AppendInittab("lib", PyInit_lib) instead of calling PyInit_lib directly from Python 3.5 */
63
+ PyMODINIT_FUNC PyInit_lib(void);
64
+
65
+ #if PY_VERSION_HEX >= 0x03050000 && (defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER) || (defined(__cplusplus) && __cplusplus >= 201402L))
66
+ #if defined(__cplusplus) && __cplusplus >= 201402L
67
+ [[deprecated("Use PyImport_AppendInittab(\"lib\", PyInit_lib) instead of calling PyInit_lib directly.")]] inline
68
+ #elif defined(__GNUC__) || defined(__clang__)
69
+ __attribute__ ((__deprecated__("Use PyImport_AppendInittab(\"lib\", PyInit_lib) instead of calling PyInit_lib directly."), __unused__)) __inline__
70
+ #elif defined(_MSC_VER)
71
+ __declspec(deprecated("Use PyImport_AppendInittab(\"lib\", PyInit_lib) instead of calling PyInit_lib directly.")) __inline
72
+ #endif
73
+ static PyObject* __PYX_WARN_IF_PyInit_lib_INIT_CALLED(PyObject* res) {
74
+ return res;
75
+ }
76
+ #define PyInit_lib() __PYX_WARN_IF_PyInit_lib_INIT_CALLED(PyInit_lib())
77
+ #endif
78
+
79
+ #endif /* !__PYX_HAVE__pyarrow__lib */
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/lib_api.h ADDED
@@ -0,0 +1,230 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Generated by Cython 3.3.0 */
2
+
3
+ #ifndef __PYX_HAVE_API__pyarrow__lib
4
+ #define __PYX_HAVE_API__pyarrow__lib
5
+ #ifdef __MINGW64__
6
+ #define MS_WIN64
7
+ #endif
8
+ #include "Python.h"
9
+ #include "lib.h"
10
+
11
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_box_memory_pool)( arrow::MemoryPool *) = 0;
12
+ #define box_memory_pool __pyx_api_f_7pyarrow_3lib_box_memory_pool
13
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_buffer)(std::shared_ptr< arrow::Buffer> const &) = 0;
14
+ #define pyarrow_wrap_buffer __pyx_api_f_7pyarrow_3lib_pyarrow_wrap_buffer
15
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_resizable_buffer)(std::shared_ptr< arrow::ResizableBuffer> const &) = 0;
16
+ #define pyarrow_wrap_resizable_buffer __pyx_api_f_7pyarrow_3lib_pyarrow_wrap_resizable_buffer
17
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_data_type)(std::shared_ptr< arrow::DataType> const &) = 0;
18
+ #define pyarrow_wrap_data_type __pyx_api_f_7pyarrow_3lib_pyarrow_wrap_data_type
19
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_field)(std::shared_ptr< arrow::Field> const &) = 0;
20
+ #define pyarrow_wrap_field __pyx_api_f_7pyarrow_3lib_pyarrow_wrap_field
21
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_schema)(std::shared_ptr< arrow::Schema> const &) = 0;
22
+ #define pyarrow_wrap_schema __pyx_api_f_7pyarrow_3lib_pyarrow_wrap_schema
23
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_scalar)(std::shared_ptr< arrow::Scalar> const &) = 0;
24
+ #define pyarrow_wrap_scalar __pyx_api_f_7pyarrow_3lib_pyarrow_wrap_scalar
25
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_array)(std::shared_ptr< arrow::Array> const &) = 0;
26
+ #define pyarrow_wrap_array __pyx_api_f_7pyarrow_3lib_pyarrow_wrap_array
27
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_chunked_array)(std::shared_ptr< arrow::ChunkedArray> const &) = 0;
28
+ #define pyarrow_wrap_chunked_array __pyx_api_f_7pyarrow_3lib_pyarrow_wrap_chunked_array
29
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_sparse_coo_tensor)(std::shared_ptr< arrow::SparseCOOTensor> const &) = 0;
30
+ #define pyarrow_wrap_sparse_coo_tensor __pyx_api_f_7pyarrow_3lib_pyarrow_wrap_sparse_coo_tensor
31
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_sparse_csc_matrix)(std::shared_ptr< arrow::SparseCSCMatrix> const &) = 0;
32
+ #define pyarrow_wrap_sparse_csc_matrix __pyx_api_f_7pyarrow_3lib_pyarrow_wrap_sparse_csc_matrix
33
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_sparse_csf_tensor)(std::shared_ptr< arrow::SparseCSFTensor> const &) = 0;
34
+ #define pyarrow_wrap_sparse_csf_tensor __pyx_api_f_7pyarrow_3lib_pyarrow_wrap_sparse_csf_tensor
35
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_sparse_csr_matrix)(std::shared_ptr< arrow::SparseCSRMatrix> const &) = 0;
36
+ #define pyarrow_wrap_sparse_csr_matrix __pyx_api_f_7pyarrow_3lib_pyarrow_wrap_sparse_csr_matrix
37
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_tensor)(std::shared_ptr< arrow::Tensor> const &) = 0;
38
+ #define pyarrow_wrap_tensor __pyx_api_f_7pyarrow_3lib_pyarrow_wrap_tensor
39
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_batch)(std::shared_ptr< arrow::RecordBatch> const &) = 0;
40
+ #define pyarrow_wrap_batch __pyx_api_f_7pyarrow_3lib_pyarrow_wrap_batch
41
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_table)(std::shared_ptr< arrow::Table> const &) = 0;
42
+ #define pyarrow_wrap_table __pyx_api_f_7pyarrow_3lib_pyarrow_wrap_table
43
+ static std::shared_ptr< arrow::Buffer> (*__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_buffer)(PyObject *) = 0;
44
+ #define pyarrow_unwrap_buffer __pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_buffer
45
+ static std::shared_ptr< arrow::DataType> (*__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_data_type)(PyObject *) = 0;
46
+ #define pyarrow_unwrap_data_type __pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_data_type
47
+ static std::shared_ptr< arrow::Field> (*__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_field)(PyObject *) = 0;
48
+ #define pyarrow_unwrap_field __pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_field
49
+ static std::shared_ptr< arrow::Schema> (*__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_schema)(PyObject *) = 0;
50
+ #define pyarrow_unwrap_schema __pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_schema
51
+ static std::shared_ptr< arrow::Scalar> (*__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_scalar)(PyObject *) = 0;
52
+ #define pyarrow_unwrap_scalar __pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_scalar
53
+ static std::shared_ptr< arrow::Array> (*__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_array)(PyObject *) = 0;
54
+ #define pyarrow_unwrap_array __pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_array
55
+ static std::shared_ptr< arrow::ChunkedArray> (*__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_chunked_array)(PyObject *) = 0;
56
+ #define pyarrow_unwrap_chunked_array __pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_chunked_array
57
+ static std::shared_ptr< arrow::SparseCOOTensor> (*__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_sparse_coo_tensor)(PyObject *) = 0;
58
+ #define pyarrow_unwrap_sparse_coo_tensor __pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_sparse_coo_tensor
59
+ static std::shared_ptr< arrow::SparseCSCMatrix> (*__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csc_matrix)(PyObject *) = 0;
60
+ #define pyarrow_unwrap_sparse_csc_matrix __pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csc_matrix
61
+ static std::shared_ptr< arrow::SparseCSFTensor> (*__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csf_tensor)(PyObject *) = 0;
62
+ #define pyarrow_unwrap_sparse_csf_tensor __pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csf_tensor
63
+ static std::shared_ptr< arrow::SparseCSRMatrix> (*__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csr_matrix)(PyObject *) = 0;
64
+ #define pyarrow_unwrap_sparse_csr_matrix __pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csr_matrix
65
+ static std::shared_ptr< arrow::Tensor> (*__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_tensor)(PyObject *) = 0;
66
+ #define pyarrow_unwrap_tensor __pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_tensor
67
+ static std::shared_ptr< arrow::RecordBatch> (*__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_batch)(PyObject *) = 0;
68
+ #define pyarrow_unwrap_batch __pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_batch
69
+ static std::shared_ptr< arrow::Table> (*__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_table)(PyObject *) = 0;
70
+ #define pyarrow_unwrap_table __pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_table
71
+ static int (*__pyx_api_f_7pyarrow_3lib_pyarrow_internal_check_status)(arrow::Status const &) = 0;
72
+ #define pyarrow_internal_check_status __pyx_api_f_7pyarrow_3lib_pyarrow_internal_check_status
73
+ static PyObject *(*__pyx_api_f_7pyarrow_3lib_pyarrow_internal_convert_status)(arrow::Status const &) = 0;
74
+ #define pyarrow_internal_convert_status __pyx_api_f_7pyarrow_3lib_pyarrow_internal_convert_status
75
+ static int (*__pyx_api_f_7pyarrow_3lib_pyarrow_is_buffer)(PyObject *) = 0;
76
+ #define pyarrow_is_buffer __pyx_api_f_7pyarrow_3lib_pyarrow_is_buffer
77
+ static int (*__pyx_api_f_7pyarrow_3lib_pyarrow_is_data_type)(PyObject *) = 0;
78
+ #define pyarrow_is_data_type __pyx_api_f_7pyarrow_3lib_pyarrow_is_data_type
79
+ static int (*__pyx_api_f_7pyarrow_3lib_pyarrow_is_metadata)(PyObject *) = 0;
80
+ #define pyarrow_is_metadata __pyx_api_f_7pyarrow_3lib_pyarrow_is_metadata
81
+ static int (*__pyx_api_f_7pyarrow_3lib_pyarrow_is_field)(PyObject *) = 0;
82
+ #define pyarrow_is_field __pyx_api_f_7pyarrow_3lib_pyarrow_is_field
83
+ static int (*__pyx_api_f_7pyarrow_3lib_pyarrow_is_schema)(PyObject *) = 0;
84
+ #define pyarrow_is_schema __pyx_api_f_7pyarrow_3lib_pyarrow_is_schema
85
+ static int (*__pyx_api_f_7pyarrow_3lib_pyarrow_is_array)(PyObject *) = 0;
86
+ #define pyarrow_is_array __pyx_api_f_7pyarrow_3lib_pyarrow_is_array
87
+ static int (*__pyx_api_f_7pyarrow_3lib_pyarrow_is_chunked_array)(PyObject *) = 0;
88
+ #define pyarrow_is_chunked_array __pyx_api_f_7pyarrow_3lib_pyarrow_is_chunked_array
89
+ static int (*__pyx_api_f_7pyarrow_3lib_pyarrow_is_scalar)(PyObject *) = 0;
90
+ #define pyarrow_is_scalar __pyx_api_f_7pyarrow_3lib_pyarrow_is_scalar
91
+ static int (*__pyx_api_f_7pyarrow_3lib_pyarrow_is_tensor)(PyObject *) = 0;
92
+ #define pyarrow_is_tensor __pyx_api_f_7pyarrow_3lib_pyarrow_is_tensor
93
+ static int (*__pyx_api_f_7pyarrow_3lib_pyarrow_is_sparse_coo_tensor)(PyObject *) = 0;
94
+ #define pyarrow_is_sparse_coo_tensor __pyx_api_f_7pyarrow_3lib_pyarrow_is_sparse_coo_tensor
95
+ static int (*__pyx_api_f_7pyarrow_3lib_pyarrow_is_sparse_csr_matrix)(PyObject *) = 0;
96
+ #define pyarrow_is_sparse_csr_matrix __pyx_api_f_7pyarrow_3lib_pyarrow_is_sparse_csr_matrix
97
+ static int (*__pyx_api_f_7pyarrow_3lib_pyarrow_is_sparse_csc_matrix)(PyObject *) = 0;
98
+ #define pyarrow_is_sparse_csc_matrix __pyx_api_f_7pyarrow_3lib_pyarrow_is_sparse_csc_matrix
99
+ static int (*__pyx_api_f_7pyarrow_3lib_pyarrow_is_sparse_csf_tensor)(PyObject *) = 0;
100
+ #define pyarrow_is_sparse_csf_tensor __pyx_api_f_7pyarrow_3lib_pyarrow_is_sparse_csf_tensor
101
+ static int (*__pyx_api_f_7pyarrow_3lib_pyarrow_is_table)(PyObject *) = 0;
102
+ #define pyarrow_is_table __pyx_api_f_7pyarrow_3lib_pyarrow_is_table
103
+ static int (*__pyx_api_f_7pyarrow_3lib_pyarrow_is_batch)(PyObject *) = 0;
104
+ #define pyarrow_is_batch __pyx_api_f_7pyarrow_3lib_pyarrow_is_batch
105
+ static int __Pyx_ImportFunction_3_3_0(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
106
+
107
+ #ifndef __PYX_HAVE_RT_ImportFromPxd_3_3_0
108
+ #define __PYX_HAVE_RT_ImportFromPxd_3_3_0
109
+ static int __Pyx_ImportFromPxd_3_3_0(PyObject *module, const char *name, void **p, const char *sig, const char *what, int optional) {
110
+ PyObject *d = 0;
111
+ PyObject *cobj = 0;
112
+ d = PyObject_GetAttrString(module, "__pyx_capi__");
113
+ if (!d)
114
+ goto bad;
115
+ #if (defined(Py_LIMITED_API) && Py_LIMITED_API >= 0x030d0000) || (!defined(Py_LIMITED_API) && PY_VERSION_HEX >= 0x030d0000)
116
+ PyDict_GetItemStringRef(d, name, &cobj);
117
+ #else
118
+ cobj = PyDict_GetItemString(d, name);
119
+ Py_XINCREF(cobj);
120
+ #endif
121
+ if (!cobj) {
122
+ if (optional && !PyErr_Occurred()) {
123
+ PyErr_Clear();
124
+ *p = NULL;
125
+ goto allowed_failure;
126
+ } else {
127
+ PyErr_Format(PyExc_ImportError,
128
+ "%.200s does not export expected C %.8s %.200s",
129
+ PyModule_GetName(module), what, name);
130
+ goto bad;
131
+ }
132
+ }
133
+ if (!PyCapsule_IsValid(cobj, sig)) {
134
+ PyErr_Format(PyExc_TypeError,
135
+ "C %.8s %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
136
+ what, PyModule_GetName(module), name, sig, PyCapsule_GetName(cobj));
137
+ goto bad;
138
+ }
139
+ *p = PyCapsule_GetPointer(cobj, sig);
140
+ if (!(*p))
141
+ goto bad;
142
+ Py_DECREF(cobj);
143
+ allowed_failure:
144
+ Py_DECREF(d);
145
+ return 0;
146
+ bad:
147
+ Py_XDECREF(d);
148
+ Py_XDECREF(cobj);
149
+ return -1;
150
+ }
151
+ #endif
152
+
153
+ #ifndef __PYX_HAVE_RT_ImportFunction_3_3_0
154
+ #define __PYX_HAVE_RT_ImportFunction_3_3_0
155
+ static int __Pyx_ImportFunction_3_3_0(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
156
+ if (*f) {
157
+ return 0; // already imported under a different name
158
+ }
159
+ union {
160
+ void (*fp)(void);
161
+ void *p;
162
+ } tmp;
163
+ int result = __Pyx_ImportFromPxd_3_3_0(module, funcname, &tmp.p, sig, "function", 0);
164
+ if (result == 0) {
165
+ *f = tmp.fp;
166
+ }
167
+ return result;
168
+ }
169
+ #endif
170
+
171
+
172
+ static int import_pyarrow__lib(void) {
173
+ PyObject *module = 0;
174
+ module = PyImport_ImportModule("pyarrow.lib");
175
+ if (!module) goto bad;
176
+ if (__Pyx_ImportFunction_3_3_0(module, "box_memory_pool", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_box_memory_pool, "PyObject *( arrow::MemoryPool *)") < 0) goto bad;
177
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_wrap_buffer", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_buffer, "PyObject *(std::shared_ptr< arrow::Buffer> const &)") < 0) goto bad;
178
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_wrap_resizable_buffer", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_resizable_buffer, "PyObject *(std::shared_ptr< arrow::ResizableBuffer> const &)") < 0) goto bad;
179
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_wrap_data_type", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_data_type, "PyObject *(std::shared_ptr< arrow::DataType> const &)") < 0) goto bad;
180
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_wrap_field", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_field, "PyObject *(std::shared_ptr< arrow::Field> const &)") < 0) goto bad;
181
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_wrap_schema", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_schema, "PyObject *(std::shared_ptr< arrow::Schema> const &)") < 0) goto bad;
182
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_wrap_scalar", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_scalar, "PyObject *(std::shared_ptr< arrow::Scalar> const &)") < 0) goto bad;
183
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_wrap_array", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_array, "PyObject *(std::shared_ptr< arrow::Array> const &)") < 0) goto bad;
184
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_wrap_chunked_array", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_chunked_array, "PyObject *(std::shared_ptr< arrow::ChunkedArray> const &)") < 0) goto bad;
185
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_wrap_sparse_coo_tensor", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_sparse_coo_tensor, "PyObject *(std::shared_ptr< arrow::SparseCOOTensor> const &)") < 0) goto bad;
186
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_wrap_sparse_csc_matrix", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_sparse_csc_matrix, "PyObject *(std::shared_ptr< arrow::SparseCSCMatrix> const &)") < 0) goto bad;
187
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_wrap_sparse_csf_tensor", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_sparse_csf_tensor, "PyObject *(std::shared_ptr< arrow::SparseCSFTensor> const &)") < 0) goto bad;
188
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_wrap_sparse_csr_matrix", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_sparse_csr_matrix, "PyObject *(std::shared_ptr< arrow::SparseCSRMatrix> const &)") < 0) goto bad;
189
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_wrap_tensor", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_tensor, "PyObject *(std::shared_ptr< arrow::Tensor> const &)") < 0) goto bad;
190
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_wrap_batch", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_batch, "PyObject *(std::shared_ptr< arrow::RecordBatch> const &)") < 0) goto bad;
191
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_wrap_table", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_wrap_table, "PyObject *(std::shared_ptr< arrow::Table> const &)") < 0) goto bad;
192
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_unwrap_buffer", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_buffer, "std::shared_ptr< arrow::Buffer> (PyObject *)") < 0) goto bad;
193
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_unwrap_data_type", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_data_type, "std::shared_ptr< arrow::DataType> (PyObject *)") < 0) goto bad;
194
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_unwrap_field", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_field, "std::shared_ptr< arrow::Field> (PyObject *)") < 0) goto bad;
195
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_unwrap_schema", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_schema, "std::shared_ptr< arrow::Schema> (PyObject *)") < 0) goto bad;
196
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_unwrap_scalar", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_scalar, "std::shared_ptr< arrow::Scalar> (PyObject *)") < 0) goto bad;
197
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_unwrap_array", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_array, "std::shared_ptr< arrow::Array> (PyObject *)") < 0) goto bad;
198
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_unwrap_chunked_array", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_chunked_array, "std::shared_ptr< arrow::ChunkedArray> (PyObject *)") < 0) goto bad;
199
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_unwrap_sparse_coo_tensor", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_sparse_coo_tensor, "std::shared_ptr< arrow::SparseCOOTensor> (PyObject *)") < 0) goto bad;
200
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_unwrap_sparse_csc_matrix", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csc_matrix, "std::shared_ptr< arrow::SparseCSCMatrix> (PyObject *)") < 0) goto bad;
201
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_unwrap_sparse_csf_tensor", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csf_tensor, "std::shared_ptr< arrow::SparseCSFTensor> (PyObject *)") < 0) goto bad;
202
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_unwrap_sparse_csr_matrix", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csr_matrix, "std::shared_ptr< arrow::SparseCSRMatrix> (PyObject *)") < 0) goto bad;
203
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_unwrap_tensor", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_tensor, "std::shared_ptr< arrow::Tensor> (PyObject *)") < 0) goto bad;
204
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_unwrap_batch", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_batch, "std::shared_ptr< arrow::RecordBatch> (PyObject *)") < 0) goto bad;
205
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_unwrap_table", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_unwrap_table, "std::shared_ptr< arrow::Table> (PyObject *)") < 0) goto bad;
206
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_internal_check_status", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_internal_check_status, "int (arrow::Status const &)") < 0) goto bad;
207
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_internal_convert_status", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_internal_convert_status, "PyObject *(arrow::Status const &)") < 0) goto bad;
208
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_is_buffer", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_is_buffer, "int (PyObject *)") < 0) goto bad;
209
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_is_data_type", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_is_data_type, "int (PyObject *)") < 0) goto bad;
210
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_is_metadata", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_is_metadata, "int (PyObject *)") < 0) goto bad;
211
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_is_field", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_is_field, "int (PyObject *)") < 0) goto bad;
212
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_is_schema", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_is_schema, "int (PyObject *)") < 0) goto bad;
213
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_is_array", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_is_array, "int (PyObject *)") < 0) goto bad;
214
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_is_chunked_array", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_is_chunked_array, "int (PyObject *)") < 0) goto bad;
215
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_is_scalar", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_is_scalar, "int (PyObject *)") < 0) goto bad;
216
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_is_tensor", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_is_tensor, "int (PyObject *)") < 0) goto bad;
217
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_is_sparse_coo_tensor", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_is_sparse_coo_tensor, "int (PyObject *)") < 0) goto bad;
218
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_is_sparse_csr_matrix", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_is_sparse_csr_matrix, "int (PyObject *)") < 0) goto bad;
219
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_is_sparse_csc_matrix", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_is_sparse_csc_matrix, "int (PyObject *)") < 0) goto bad;
220
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_is_sparse_csf_tensor", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_is_sparse_csf_tensor, "int (PyObject *)") < 0) goto bad;
221
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_is_table", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_is_table, "int (PyObject *)") < 0) goto bad;
222
+ if (__Pyx_ImportFunction_3_3_0(module, "pyarrow_is_batch", (void (**)(void))&__pyx_api_f_7pyarrow_3lib_pyarrow_is_batch, "int (PyObject *)") < 0) goto bad;
223
+ Py_DECREF(module); module = 0;
224
+ return 0;
225
+ bad:
226
+ Py_XDECREF(module);
227
+ return -1;
228
+ }
229
+
230
+ #endif /* !__PYX_HAVE_API__pyarrow__lib */
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/numpy_convert.h ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // Functions for converting between pandas's NumPy-based data representation
19
+ // and Arrow data structures
20
+
21
+ #pragma once
22
+
23
+ #include "arrow/python/platform.h"
24
+
25
+ #include <memory>
26
+ #include <string>
27
+ #include <vector>
28
+
29
+ #include "arrow/buffer.h"
30
+ #include "arrow/python/visibility.h"
31
+ #include "arrow/sparse_tensor.h"
32
+
33
+ namespace arrow {
34
+
35
+ class DataType;
36
+ class MemoryPool;
37
+ class Status;
38
+ class Tensor;
39
+
40
+ namespace py {
41
+
42
+ class ARROW_PYTHON_EXPORT NumPyBuffer : public Buffer {
43
+ public:
44
+ explicit NumPyBuffer(PyObject* arr);
45
+ virtual ~NumPyBuffer();
46
+
47
+ private:
48
+ PyObject* arr_;
49
+ };
50
+
51
+ ARROW_PYTHON_EXPORT
52
+ Result<std::shared_ptr<DataType>> NumPyDtypeToArrow(PyObject* dtype);
53
+ ARROW_PYTHON_EXPORT
54
+ Result<std::shared_ptr<DataType>> NumPyDtypeToArrow(PyArray_Descr* descr);
55
+ ARROW_PYTHON_EXPORT
56
+ Result<std::shared_ptr<DataType>> NumPyScalarToArrowDataType(PyObject* scalar);
57
+
58
+ ARROW_PYTHON_EXPORT Status NdarrayToTensor(MemoryPool* pool, PyObject* ao,
59
+ const std::vector<std::string>& dim_names,
60
+ std::shared_ptr<Tensor>* out);
61
+
62
+ ARROW_PYTHON_EXPORT Status TensorToNdarray(const std::shared_ptr<Tensor>& tensor,
63
+ PyObject* base, PyObject** out);
64
+
65
+ ARROW_PYTHON_EXPORT Status
66
+ SparseCOOTensorToNdarray(const std::shared_ptr<SparseCOOTensor>& sparse_tensor,
67
+ PyObject* base, PyObject** out_data, PyObject** out_coords);
68
+
69
+ Status SparseCSXMatrixToNdarray(const std::shared_ptr<SparseTensor>& sparse_tensor,
70
+ PyObject* base, PyObject** out_data,
71
+ PyObject** out_indptr, PyObject** out_indices);
72
+
73
+ ARROW_PYTHON_EXPORT Status SparseCSRMatrixToNdarray(
74
+ const std::shared_ptr<SparseCSRMatrix>& sparse_tensor, PyObject* base,
75
+ PyObject** out_data, PyObject** out_indptr, PyObject** out_indices);
76
+
77
+ ARROW_PYTHON_EXPORT Status SparseCSCMatrixToNdarray(
78
+ const std::shared_ptr<SparseCSCMatrix>& sparse_tensor, PyObject* base,
79
+ PyObject** out_data, PyObject** out_indptr, PyObject** out_indices);
80
+
81
+ ARROW_PYTHON_EXPORT Status SparseCSFTensorToNdarray(
82
+ const std::shared_ptr<SparseCSFTensor>& sparse_tensor, PyObject* base,
83
+ PyObject** out_data, PyObject** out_indptr, PyObject** out_indices);
84
+
85
+ ARROW_PYTHON_EXPORT Status NdarraysToSparseCOOTensor(
86
+ MemoryPool* pool, PyObject* data_ao, PyObject* coords_ao,
87
+ const std::vector<int64_t>& shape, const std::vector<std::string>& dim_names,
88
+ std::shared_ptr<SparseCOOTensor>* out);
89
+
90
+ ARROW_PYTHON_EXPORT Status NdarraysToSparseCSRMatrix(
91
+ MemoryPool* pool, PyObject* data_ao, PyObject* indptr_ao, PyObject* indices_ao,
92
+ const std::vector<int64_t>& shape, const std::vector<std::string>& dim_names,
93
+ std::shared_ptr<SparseCSRMatrix>* out);
94
+
95
+ ARROW_PYTHON_EXPORT Status NdarraysToSparseCSCMatrix(
96
+ MemoryPool* pool, PyObject* data_ao, PyObject* indptr_ao, PyObject* indices_ao,
97
+ const std::vector<int64_t>& shape, const std::vector<std::string>& dim_names,
98
+ std::shared_ptr<SparseCSCMatrix>* out);
99
+
100
+ ARROW_PYTHON_EXPORT Status NdarraysToSparseCSFTensor(
101
+ MemoryPool* pool, PyObject* data_ao, PyObject* indptr_ao, PyObject* indices_ao,
102
+ const std::vector<int64_t>& shape, const std::vector<int64_t>& axis_order,
103
+ const std::vector<std::string>& dim_names, std::shared_ptr<SparseCSFTensor>* out);
104
+
105
+ ARROW_PYTHON_EXPORT Status
106
+ TensorToSparseCOOTensor(const std::shared_ptr<Tensor>& tensor,
107
+ std::shared_ptr<SparseCOOTensor>* csparse_tensor);
108
+
109
+ ARROW_PYTHON_EXPORT Status
110
+ TensorToSparseCSRMatrix(const std::shared_ptr<Tensor>& tensor,
111
+ std::shared_ptr<SparseCSRMatrix>* csparse_tensor);
112
+
113
+ ARROW_PYTHON_EXPORT Status
114
+ TensorToSparseCSCMatrix(const std::shared_ptr<Tensor>& tensor,
115
+ std::shared_ptr<SparseCSCMatrix>* csparse_tensor);
116
+
117
+ ARROW_PYTHON_EXPORT Status
118
+ TensorToSparseCSFTensor(const std::shared_ptr<Tensor>& tensor,
119
+ std::shared_ptr<SparseCSFTensor>* csparse_tensor);
120
+
121
+ } // namespace py
122
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/numpy_init.h ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/python/platform.h"
21
+ #include "arrow/python/visibility.h"
22
+
23
+ namespace arrow::py {
24
+ ARROW_PYTHON_EXPORT
25
+ int arrow_init_numpy();
26
+ bool has_numpy();
27
+ } // namespace arrow::py
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/numpy_interop.h ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/python/platform.h" // IWYU pragma: export
21
+
22
+ // Require the NumPy 2.0 C API and hide deprecated APIs.
23
+ #define NPY_TARGET_VERSION NPY_2_0_API_VERSION
24
+ #define NPY_NO_DEPRECATED_API NPY_2_0_API_VERSION
25
+
26
+ #include <numpy/numpyconfig.h> // IWYU pragma: export
27
+
28
+ #if NPY_ABI_VERSION < 0x02000000
29
+ # error "PyArrow requires NumPy 2.0 or newer"
30
+ #endif
31
+
32
+ // This is required to be able to access the NumPy C API properly in C++ files
33
+ // other than init.cc.
34
+ #define PY_ARRAY_UNIQUE_SYMBOL arrow_ARRAY_API
35
+ #ifndef NUMPY_IMPORT_ARRAY
36
+ # define NO_IMPORT_ARRAY
37
+ #endif
38
+
39
+ #include <numpy/arrayobject.h> // IWYU pragma: export
40
+ #include <numpy/arrayscalars.h> // IWYU pragma: export
41
+ #include <numpy/ufuncobject.h> // IWYU pragma: export
42
+
43
+ // A bit subtle. Numpy has 5 canonical integer types:
44
+ // (or, rather, type pairs: signed and unsigned)
45
+ // NPY_BYTE, NPY_SHORT, NPY_INT, NPY_LONG, NPY_LONGLONG
46
+ // It also has 4 fixed-width integer aliases.
47
+ // When mapping Arrow integer types to these 4 fixed-width aliases,
48
+ // we always miss one of the canonical types (even though it may
49
+ // have the same width as one of the aliases).
50
+ // Which one depends on the platform...
51
+ // On a LP64 system, NPY_INT64 maps to NPY_LONG and
52
+ // NPY_LONGLONG needs to be handled separately.
53
+ // On a LLP64 system, NPY_INT32 maps to NPY_LONG and
54
+ // NPY_INT needs to be handled separately.
55
+
56
+ #if NPY_BITSOF_LONG == 32 && NPY_BITSOF_LONGLONG == 64
57
+ # define NPY_INT64_IS_LONG_LONG 1
58
+ #else
59
+ # define NPY_INT64_IS_LONG_LONG 0
60
+ #endif
61
+
62
+ #if NPY_BITSOF_INT == 32 && NPY_BITSOF_LONG == 64
63
+ # define NPY_INT32_IS_INT 1
64
+ #else
65
+ # define NPY_INT32_IS_INT 0
66
+ #endif
67
+
68
+ namespace arrow {
69
+ namespace py {
70
+
71
+ inline int import_numpy() {
72
+ #ifdef NUMPY_IMPORT_ARRAY
73
+ if (PyArray_ImportNumPyAPI() < 0) return -1;
74
+ if (PyUFunc_ImportUFuncAPI() < 0) return -1;
75
+ #endif
76
+
77
+ return 0;
78
+ }
79
+
80
+ // See above about the missing Numpy integer type numbers
81
+ inline int fix_numpy_type_num(int type_num) {
82
+ #if !NPY_INT32_IS_INT && NPY_BITSOF_INT == 32
83
+ if (type_num == NPY_INT) return NPY_INT32;
84
+ if (type_num == NPY_UINT) return NPY_UINT32;
85
+ #endif
86
+ #if !NPY_INT64_IS_LONG_LONG && NPY_BITSOF_LONGLONG == 64
87
+ if (type_num == NPY_LONGLONG) return NPY_INT64;
88
+ if (type_num == NPY_ULONGLONG) return NPY_UINT64;
89
+ #endif
90
+ return type_num;
91
+ }
92
+
93
+ } // namespace py
94
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/numpy_to_arrow.h ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // Converting from pandas memory representation to Arrow data structures
19
+
20
+ #pragma once
21
+
22
+ #include "arrow/python/platform.h"
23
+
24
+ #include <memory>
25
+
26
+ #include "arrow/compute/api.h"
27
+ #include "arrow/python/visibility.h"
28
+
29
+ namespace arrow {
30
+
31
+ class Array;
32
+ class ChunkedArray;
33
+ class DataType;
34
+ class MemoryPool;
35
+ class Status;
36
+
37
+ namespace py {
38
+
39
+ /// Convert NumPy arrays to Arrow. If target data type is not known, pass a
40
+ /// type with null
41
+ ///
42
+ /// \param[in] pool Memory pool for any memory allocations
43
+ /// \param[in] ao an ndarray with the array data
44
+ /// \param[in] mo an ndarray with a null mask (True is null), optional
45
+ /// \param[in] from_pandas If true, use pandas's null sentinels to determine
46
+ /// whether values are null
47
+ /// \param[in] type a specific type to cast to, may be null
48
+ /// \param[in] cast_options casting options
49
+ /// \param[out] out a ChunkedArray, to accommodate chunked output
50
+ ARROW_PYTHON_EXPORT
51
+ Status NdarrayToArrow(MemoryPool* pool, PyObject* ao, PyObject* mo, bool from_pandas,
52
+ const std::shared_ptr<DataType>& type,
53
+ const compute::CastOptions& cast_options,
54
+ std::shared_ptr<ChunkedArray>* out);
55
+
56
+ /// Safely convert NumPy arrays to Arrow. If target data type is not known,
57
+ /// pass a type with null.
58
+ ///
59
+ /// \param[in] pool Memory pool for any memory allocations
60
+ /// \param[in] ao an ndarray with the array data
61
+ /// \param[in] mo an ndarray with a null mask (True is null), optional
62
+ /// \param[in] from_pandas If true, use pandas's null sentinels to determine
63
+ /// whether values are null
64
+ /// \param[in] type a specific type to cast to, may be null
65
+ /// \param[out] out a ChunkedArray, to accommodate chunked output
66
+ ARROW_PYTHON_EXPORT
67
+ Status NdarrayToArrow(MemoryPool* pool, PyObject* ao, PyObject* mo, bool from_pandas,
68
+ const std::shared_ptr<DataType>& type,
69
+ std::shared_ptr<ChunkedArray>* out);
70
+
71
+ } // namespace py
72
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/parquet_encryption.h ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <string>
21
+ #include "arrow/python/common.h"
22
+ #include "arrow/python/visibility.h"
23
+ #include "arrow/result.h"
24
+ #include "arrow/util/macros.h"
25
+ #include "arrow/util/secure_string.h"
26
+ #include "parquet/encryption/crypto_factory.h"
27
+ #include "parquet/encryption/file_system_key_material_store.h"
28
+ #include "parquet/encryption/key_material.h"
29
+ #include "parquet/encryption/kms_client.h"
30
+ #include "parquet/encryption/kms_client_factory.h"
31
+
32
+ #if defined(_WIN32) || defined(__CYGWIN__) // Windows
33
+ # if defined(_MSC_VER)
34
+ # pragma warning(disable : 4251)
35
+ # else
36
+ # pragma GCC diagnostic ignored "-Wattributes"
37
+ # endif
38
+
39
+ # ifdef ARROW_PYTHON_STATIC
40
+ # define ARROW_PYTHON_PARQUET_ENCRYPTION_EXPORT
41
+ # elif defined(ARROW_PYTHON_PARQUET_ENCRYPTION_EXPORTING)
42
+ # define ARROW_PYTHON_PARQUET_ENCRYPTION_EXPORT __declspec(dllexport)
43
+ # else
44
+ # define ARROW_PYTHON_PARQUET_ENCRYPTION_EXPORT __declspec(dllimport)
45
+ # endif
46
+
47
+ #else // Not Windows
48
+ # ifndef ARROW_PYTHON_PARQUET_ENCRYPTION_EXPORT
49
+ # define ARROW_PYTHON_PARQUET_ENCRYPTION_EXPORT __attribute__((visibility("default")))
50
+ # endif
51
+ #endif // Non-Windows
52
+
53
+ namespace arrow {
54
+ namespace py {
55
+ namespace parquet {
56
+ namespace encryption {
57
+
58
+ /// \brief A table of function pointers for calling from C++ into
59
+ /// Python.
60
+ class ARROW_PYTHON_PARQUET_ENCRYPTION_EXPORT PyKmsClientVtable {
61
+ public:
62
+ std::function<void(PyObject*, const ::arrow::util::SecureString& key,
63
+ const std::string& master_key_identifier, std::string* out)>
64
+ wrap_key;
65
+ std::function<void(PyObject*, const std::string& wrapped_key,
66
+ const std::string& master_key_identifier,
67
+ ::arrow::util::SecureString* out)>
68
+ unwrap_key;
69
+ };
70
+
71
+ /// \brief A helper for KmsClient implementation in Python.
72
+ class ARROW_PYTHON_PARQUET_ENCRYPTION_EXPORT PyKmsClient
73
+ : public ::parquet::encryption::KmsClient {
74
+ public:
75
+ PyKmsClient(PyObject* handler, PyKmsClientVtable vtable);
76
+ ~PyKmsClient() override;
77
+
78
+ std::string WrapKey(const ::arrow::util::SecureString& key,
79
+ const std::string& master_key_identifier) override;
80
+
81
+ ::arrow::util::SecureString UnwrapKey(
82
+ const std::string& wrapped_key, const std::string& master_key_identifier) override;
83
+
84
+ private:
85
+ OwnedRefNoGIL handler_;
86
+ PyKmsClientVtable vtable_;
87
+ };
88
+
89
+ /// \brief A table of function pointers for calling from C++ into
90
+ /// Python.
91
+ class ARROW_PYTHON_PARQUET_ENCRYPTION_EXPORT PyKmsClientFactoryVtable {
92
+ public:
93
+ std::function<void(
94
+ PyObject*, const ::parquet::encryption::KmsConnectionConfig& kms_connection_config,
95
+ std::shared_ptr<::parquet::encryption::KmsClient>* out)>
96
+ create_kms_client;
97
+ };
98
+
99
+ /// \brief A helper for KmsClientFactory implementation in Python.
100
+ class ARROW_PYTHON_PARQUET_ENCRYPTION_EXPORT PyKmsClientFactory
101
+ : public ::parquet::encryption::KmsClientFactory {
102
+ public:
103
+ PyKmsClientFactory(PyObject* handler, PyKmsClientFactoryVtable vtable);
104
+ ~PyKmsClientFactory() override;
105
+
106
+ std::shared_ptr<::parquet::encryption::KmsClient> CreateKmsClient(
107
+ const ::parquet::encryption::KmsConnectionConfig& kms_connection_config) override;
108
+
109
+ private:
110
+ OwnedRefNoGIL handler_;
111
+ PyKmsClientFactoryVtable vtable_;
112
+ };
113
+
114
+ /// \brief A CryptoFactory that returns Results instead of throwing exceptions.
115
+ class ARROW_PYTHON_PARQUET_ENCRYPTION_EXPORT PyCryptoFactory
116
+ : public ::parquet::encryption::CryptoFactory {
117
+ public:
118
+ arrow::Result<std::shared_ptr<::parquet::FileEncryptionProperties>>
119
+ SafeGetFileEncryptionProperties(
120
+ const ::parquet::encryption::KmsConnectionConfig& kms_connection_config,
121
+ const ::parquet::encryption::EncryptionConfiguration& encryption_config,
122
+ const std::string& parquet_file_path,
123
+ const std::shared_ptr<::arrow::fs::FileSystem>& filesystem);
124
+
125
+ /// The returned FileDecryptionProperties object will use the cache inside this
126
+ /// CryptoFactory object, so please keep this
127
+ /// CryptoFactory object alive along with the returned
128
+ /// FileDecryptionProperties object.
129
+ arrow::Result<std::shared_ptr<::parquet::FileDecryptionProperties>>
130
+ SafeGetFileDecryptionProperties(
131
+ const ::parquet::encryption::KmsConnectionConfig& kms_connection_config,
132
+ const ::parquet::encryption::DecryptionConfiguration& decryption_config,
133
+ const std::string& parquet_file_path,
134
+ const std::shared_ptr<::arrow::fs::FileSystem>& filesystem);
135
+
136
+ arrow::Status SafeRotateMasterKeys(
137
+ const ::parquet::encryption::KmsConnectionConfig& kms_connection_config,
138
+ const std::string& parquet_file_path,
139
+ const std::shared_ptr<::arrow::fs::FileSystem>& filesystem, bool double_wrapping,
140
+ double cache_lifetime_seconds, bool read_kms_url);
141
+ };
142
+
143
+ } // namespace encryption
144
+ } // namespace parquet
145
+ } // namespace py
146
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/platform.h ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // Functions for converting between pandas's NumPy-based data representation
19
+ // and Arrow data structures
20
+
21
+ #pragma once
22
+
23
+ // If PY_SSIZE_T_CLEAN is defined, argument parsing functions treat #-specifier
24
+ // to mean Py_ssize_t (defining this to suppress deprecation warning)
25
+ #define PY_SSIZE_T_CLEAN
26
+
27
+ #include <Python.h> // IWYU pragma: export
28
+ #include <datetime.h>
29
+
30
+ // Work around C2528 error
31
+ #ifdef _MSC_VER
32
+ # if _MSC_VER >= 1900
33
+ # undef timezone
34
+ # endif
35
+ #endif
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/pyarrow.h ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/python/platform.h"
21
+
22
+ #include <memory>
23
+
24
+ #include "arrow/python/visibility.h"
25
+
26
+ #include "arrow/sparse_tensor.h"
27
+
28
+ // Work around ARROW-2317 (C linkage warning from Cython)
29
+ extern "C++" {
30
+
31
+ namespace arrow {
32
+
33
+ class Array;
34
+ class Buffer;
35
+ class DataType;
36
+ class Field;
37
+ class RecordBatch;
38
+ class Schema;
39
+ class Status;
40
+ class Table;
41
+ class Tensor;
42
+
43
+ namespace py {
44
+
45
+ // Returns 0 on success, -1 on error.
46
+ ARROW_PYTHON_EXPORT int import_pyarrow();
47
+
48
+ #define DECLARE_WRAP_FUNCTIONS(FUNC_SUFFIX, TYPE_NAME) \
49
+ ARROW_PYTHON_EXPORT bool is_##FUNC_SUFFIX(PyObject*); \
50
+ ARROW_PYTHON_EXPORT Result<std::shared_ptr<TYPE_NAME>> unwrap_##FUNC_SUFFIX( \
51
+ PyObject*); \
52
+ ARROW_PYTHON_EXPORT PyObject* wrap_##FUNC_SUFFIX(const std::shared_ptr<TYPE_NAME>&);
53
+
54
+ DECLARE_WRAP_FUNCTIONS(buffer, Buffer)
55
+
56
+ DECLARE_WRAP_FUNCTIONS(data_type, DataType)
57
+ DECLARE_WRAP_FUNCTIONS(field, Field)
58
+ DECLARE_WRAP_FUNCTIONS(schema, Schema)
59
+
60
+ DECLARE_WRAP_FUNCTIONS(scalar, Scalar)
61
+
62
+ DECLARE_WRAP_FUNCTIONS(array, Array)
63
+ DECLARE_WRAP_FUNCTIONS(chunked_array, ChunkedArray)
64
+
65
+ DECLARE_WRAP_FUNCTIONS(sparse_coo_tensor, SparseCOOTensor)
66
+ DECLARE_WRAP_FUNCTIONS(sparse_csc_matrix, SparseCSCMatrix)
67
+ DECLARE_WRAP_FUNCTIONS(sparse_csf_tensor, SparseCSFTensor)
68
+ DECLARE_WRAP_FUNCTIONS(sparse_csr_matrix, SparseCSRMatrix)
69
+ DECLARE_WRAP_FUNCTIONS(tensor, Tensor)
70
+
71
+ DECLARE_WRAP_FUNCTIONS(batch, RecordBatch)
72
+ DECLARE_WRAP_FUNCTIONS(table, Table)
73
+
74
+ #undef DECLARE_WRAP_FUNCTIONS
75
+
76
+ namespace internal {
77
+
78
+ // If status is ok, return 0.
79
+ // If status is not ok, set Python error indicator and return -1.
80
+ ARROW_PYTHON_EXPORT int check_status(const Status& status);
81
+
82
+ // Convert status to a Python exception object. Status must not be ok.
83
+ ARROW_PYTHON_EXPORT PyObject* convert_status(const Status& status);
84
+
85
+ } // namespace internal
86
+ } // namespace py
87
+ } // namespace arrow
88
+
89
+ } // extern "C++"
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/pyarrow_api.h ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // For backward compatibility.
19
+ #include "arrow/python/lib_api.h"
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/pyarrow_lib.h ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // For backward compatibility.
19
+ #include "arrow/python/lib.h"
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/python_test.h ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <functional>
21
+ #include <string>
22
+ #include <vector>
23
+
24
+ #include "arrow/status.h"
25
+
26
+ #include "arrow/python/visibility.h"
27
+
28
+ namespace arrow {
29
+ namespace py {
30
+ namespace testing {
31
+
32
+ struct TestCase {
33
+ std::string name;
34
+ std::function<Status()> func;
35
+ };
36
+
37
+ ARROW_PYTHON_EXPORT
38
+ std::vector<TestCase> GetCppTestCases();
39
+
40
+ } // namespace testing
41
+ } // namespace py
42
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/python_to_arrow.h ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // Functions for converting between CPython built-in data structures and Arrow
19
+ // data structures
20
+
21
+ #pragma once
22
+
23
+ #include "arrow/python/platform.h"
24
+
25
+ #include <cstdint>
26
+ #include <memory>
27
+
28
+ #include "arrow/python/visibility.h"
29
+ #include "arrow/type.h"
30
+ #include "arrow/util/macros.h"
31
+
32
+ #include "arrow/python/common.h"
33
+
34
+ namespace arrow {
35
+
36
+ class Array;
37
+ class Status;
38
+
39
+ namespace py {
40
+
41
+ struct PyConversionOptions {
42
+ PyConversionOptions() = default;
43
+
44
+ PyConversionOptions(const std::shared_ptr<DataType>& type, int64_t size,
45
+ MemoryPool* pool, bool from_pandas)
46
+ : type(type), size(size), from_pandas(from_pandas) {}
47
+
48
+ // Set to null if to be inferred
49
+ std::shared_ptr<DataType> type;
50
+
51
+ // Default is -1, which indicates the size should the same as the input sequence
52
+ int64_t size = -1;
53
+
54
+ bool from_pandas = false;
55
+
56
+ /// Used to maintain backwards compatibility for
57
+ /// timezone bugs (see ARROW-9528). Should be removed
58
+ /// after Arrow 2.0 release.
59
+ bool ignore_timezone = false;
60
+
61
+ bool strict = false;
62
+ };
63
+
64
+ /// \brief Convert sequence (list, generator, NumPy array with dtype object) of
65
+ /// Python objects.
66
+ /// \param[in] obj the sequence to convert
67
+ /// \param[in] mask a NumPy array of true/false values to indicate whether
68
+ /// values in the sequence are null (true) or not null (false). This parameter
69
+ /// may be null
70
+ /// \param[in] options various conversion options
71
+ /// \param[in] pool MemoryPool to use for allocations
72
+ /// \return Result ChunkedArray
73
+ ARROW_PYTHON_EXPORT
74
+ Result<std::shared_ptr<ChunkedArray>> ConvertPySequence(
75
+ PyObject* obj, PyObject* mask, PyConversionOptions options,
76
+ MemoryPool* pool = default_memory_pool());
77
+
78
+ } // namespace py
79
+
80
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/type_traits.h ADDED
@@ -0,0 +1,353 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // Internal header
19
+
20
+ #pragma once
21
+
22
+ #include "arrow/python/platform.h"
23
+
24
+ #include <cstdint>
25
+ #include <limits>
26
+
27
+ #include "arrow/python/numpy_interop.h"
28
+
29
+ #include "arrow/type_fwd.h"
30
+ #include "arrow/util/float16.h"
31
+ #include "arrow/util/logging.h"
32
+
33
+ namespace arrow {
34
+ namespace py {
35
+
36
+ static constexpr int64_t kPandasTimestampNull = std::numeric_limits<int64_t>::min();
37
+ constexpr int64_t kNanosecondsInDay = 86400000000000LL;
38
+
39
+ namespace internal {
40
+
41
+ //
42
+ // Type traits for Numpy -> Arrow equivalence
43
+ //
44
+ template <int TYPE>
45
+ struct npy_traits {};
46
+
47
+ template <>
48
+ struct npy_traits<NPY_BOOL> {
49
+ typedef uint8_t value_type;
50
+ using TypeClass = BooleanType;
51
+ using BuilderClass = BooleanBuilder;
52
+
53
+ static constexpr bool supports_nulls = false;
54
+ static inline bool isnull(uint8_t v) { return false; }
55
+ };
56
+
57
+ #define NPY_INT_DECL(TYPE, CapType, T) \
58
+ template <> \
59
+ struct npy_traits<NPY_##TYPE> { \
60
+ typedef T value_type; \
61
+ using TypeClass = CapType##Type; \
62
+ using BuilderClass = CapType##Builder; \
63
+ \
64
+ static constexpr bool supports_nulls = false; \
65
+ static inline bool isnull(T v) { return false; } \
66
+ };
67
+
68
+ NPY_INT_DECL(INT8, Int8, int8_t);
69
+ NPY_INT_DECL(INT16, Int16, int16_t);
70
+ NPY_INT_DECL(INT32, Int32, int32_t);
71
+ NPY_INT_DECL(INT64, Int64, int64_t);
72
+
73
+ NPY_INT_DECL(UINT8, UInt8, uint8_t);
74
+ NPY_INT_DECL(UINT16, UInt16, uint16_t);
75
+ NPY_INT_DECL(UINT32, UInt32, uint32_t);
76
+ NPY_INT_DECL(UINT64, UInt64, uint64_t);
77
+
78
+ #if !NPY_INT32_IS_INT && NPY_BITSOF_INT == 32
79
+ NPY_INT_DECL(INT, Int32, int32_t);
80
+ NPY_INT_DECL(UINT, UInt32, uint32_t);
81
+ #endif
82
+ #if !NPY_INT64_IS_LONG_LONG && NPY_BITSOF_LONGLONG == 64
83
+ NPY_INT_DECL(LONGLONG, Int64, int64_t);
84
+ NPY_INT_DECL(ULONGLONG, UInt64, uint64_t);
85
+ #endif
86
+
87
+ template <>
88
+ struct npy_traits<NPY_FLOAT16> {
89
+ typedef uint16_t value_type;
90
+ using TypeClass = HalfFloatType;
91
+ using BuilderClass = HalfFloatBuilder;
92
+
93
+ static constexpr uint16_t na_sentinel =
94
+ std::numeric_limits<arrow::util::Float16>::quiet_NaN().bits();
95
+
96
+ static constexpr bool supports_nulls = true;
97
+
98
+ static inline bool isnull(uint16_t v) {
99
+ return arrow::util::Float16::FromBits(v).is_nan();
100
+ }
101
+ };
102
+
103
+ template <>
104
+ struct npy_traits<NPY_FLOAT32> {
105
+ typedef float value_type;
106
+ using TypeClass = FloatType;
107
+ using BuilderClass = FloatBuilder;
108
+
109
+ // We need to use quiet_NaN here instead of the NAN macro as on Windows
110
+ // the NAN macro leads to "division-by-zero" compile-time error with clang.
111
+ static constexpr float na_sentinel = std::numeric_limits<float>::quiet_NaN();
112
+
113
+ static constexpr bool supports_nulls = true;
114
+
115
+ static inline bool isnull(float v) { return v != v; }
116
+ };
117
+
118
+ template <>
119
+ struct npy_traits<NPY_FLOAT64> {
120
+ typedef double value_type;
121
+ using TypeClass = DoubleType;
122
+ using BuilderClass = DoubleBuilder;
123
+
124
+ static constexpr double na_sentinel = std::numeric_limits<double>::quiet_NaN();
125
+
126
+ static constexpr bool supports_nulls = true;
127
+
128
+ static inline bool isnull(double v) { return v != v; }
129
+ };
130
+
131
+ template <>
132
+ struct npy_traits<NPY_DATETIME> {
133
+ typedef int64_t value_type;
134
+ using TypeClass = TimestampType;
135
+ using BuilderClass = TimestampBuilder;
136
+
137
+ static constexpr bool supports_nulls = true;
138
+
139
+ static inline bool isnull(int64_t v) {
140
+ // NaT = -2**63
141
+ // = -0x8000000000000000
142
+ // = -9223372036854775808;
143
+ // = std::numeric_limits<int64_t>::min()
144
+ return v == std::numeric_limits<int64_t>::min();
145
+ }
146
+ };
147
+
148
+ template <>
149
+ struct npy_traits<NPY_TIMEDELTA> {
150
+ typedef int64_t value_type;
151
+ using TypeClass = DurationType;
152
+ using BuilderClass = DurationBuilder;
153
+
154
+ static constexpr bool supports_nulls = true;
155
+
156
+ static inline bool isnull(int64_t v) {
157
+ // NaT = -2**63 = std::numeric_limits<int64_t>::min()
158
+ return v == std::numeric_limits<int64_t>::min();
159
+ }
160
+ };
161
+
162
+ template <>
163
+ struct npy_traits<NPY_OBJECT> {
164
+ typedef PyObject* value_type;
165
+ static constexpr bool supports_nulls = true;
166
+
167
+ static inline bool isnull(PyObject* v) { return v == Py_None; }
168
+ };
169
+
170
+ //
171
+ // Type traits for Arrow -> Numpy equivalence
172
+ // Note *supports_nulls* means the equivalent Numpy type support nulls
173
+ //
174
+ template <int TYPE>
175
+ struct arrow_traits {};
176
+
177
+ template <>
178
+ struct arrow_traits<Type::BOOL> {
179
+ static constexpr int npy_type = NPY_BOOL;
180
+ static constexpr bool supports_nulls = false;
181
+ typedef typename npy_traits<NPY_BOOL>::value_type T;
182
+ };
183
+
184
+ #define INT_DECL(TYPE) \
185
+ template <> \
186
+ struct arrow_traits<Type::TYPE> { \
187
+ static constexpr int npy_type = NPY_##TYPE; \
188
+ static constexpr bool supports_nulls = false; \
189
+ static constexpr double na_value = std::numeric_limits<double>::quiet_NaN(); \
190
+ typedef typename npy_traits<NPY_##TYPE>::value_type T; \
191
+ };
192
+
193
+ INT_DECL(INT8);
194
+ INT_DECL(INT16);
195
+ INT_DECL(INT32);
196
+ INT_DECL(INT64);
197
+ INT_DECL(UINT8);
198
+ INT_DECL(UINT16);
199
+ INT_DECL(UINT32);
200
+ INT_DECL(UINT64);
201
+
202
+ template <>
203
+ struct arrow_traits<Type::HALF_FLOAT> {
204
+ static constexpr int npy_type = NPY_FLOAT16;
205
+ static constexpr bool supports_nulls = true;
206
+ static constexpr uint16_t na_value =
207
+ std::numeric_limits<arrow::util::Float16>::quiet_NaN().bits();
208
+ typedef typename npy_traits<NPY_FLOAT16>::value_type T;
209
+ };
210
+
211
+ template <>
212
+ struct arrow_traits<Type::FLOAT> {
213
+ static constexpr int npy_type = NPY_FLOAT32;
214
+ static constexpr bool supports_nulls = true;
215
+ static constexpr float na_value = std::numeric_limits<float>::quiet_NaN();
216
+ typedef typename npy_traits<NPY_FLOAT32>::value_type T;
217
+ };
218
+
219
+ template <>
220
+ struct arrow_traits<Type::DOUBLE> {
221
+ static constexpr int npy_type = NPY_FLOAT64;
222
+ static constexpr bool supports_nulls = true;
223
+ static constexpr double na_value = std::numeric_limits<double>::quiet_NaN();
224
+ typedef typename npy_traits<NPY_FLOAT64>::value_type T;
225
+ };
226
+
227
+ template <>
228
+ struct arrow_traits<Type::TIMESTAMP> {
229
+ static constexpr int npy_type = NPY_DATETIME;
230
+ static constexpr int64_t npy_shift = 1;
231
+
232
+ static constexpr bool supports_nulls = true;
233
+ static constexpr int64_t na_value = kPandasTimestampNull;
234
+ typedef typename npy_traits<NPY_DATETIME>::value_type T;
235
+ };
236
+
237
+ template <>
238
+ struct arrow_traits<Type::DURATION> {
239
+ static constexpr int npy_type = NPY_TIMEDELTA;
240
+ static constexpr int64_t npy_shift = 1;
241
+
242
+ static constexpr bool supports_nulls = true;
243
+ static constexpr int64_t na_value = kPandasTimestampNull;
244
+ typedef typename npy_traits<NPY_TIMEDELTA>::value_type T;
245
+ };
246
+
247
+ template <>
248
+ struct arrow_traits<Type::DATE32> {
249
+ // Data stores as FR_D day unit
250
+ static constexpr int npy_type = NPY_DATETIME;
251
+ static constexpr int64_t npy_shift = 1;
252
+
253
+ static constexpr bool supports_nulls = true;
254
+ typedef typename npy_traits<NPY_DATETIME>::value_type T;
255
+
256
+ static constexpr int64_t na_value = kPandasTimestampNull;
257
+ static inline bool isnull(int64_t v) { return npy_traits<NPY_DATETIME>::isnull(v); }
258
+ };
259
+
260
+ template <>
261
+ struct arrow_traits<Type::DATE64> {
262
+ // Data stores as FR_D day unit
263
+ static constexpr int npy_type = NPY_DATETIME;
264
+
265
+ // There are 1000 * 60 * 60 * 24 = 86400000ms in a day
266
+ static constexpr int64_t npy_shift = 86400000;
267
+
268
+ static constexpr bool supports_nulls = true;
269
+ typedef typename npy_traits<NPY_DATETIME>::value_type T;
270
+
271
+ static constexpr int64_t na_value = kPandasTimestampNull;
272
+ static inline bool isnull(int64_t v) { return npy_traits<NPY_DATETIME>::isnull(v); }
273
+ };
274
+
275
+ template <>
276
+ struct arrow_traits<Type::TIME32> {
277
+ static constexpr int npy_type = NPY_OBJECT;
278
+ static constexpr bool supports_nulls = true;
279
+ static constexpr int64_t na_value = kPandasTimestampNull;
280
+ typedef typename npy_traits<NPY_DATETIME>::value_type T;
281
+ };
282
+
283
+ template <>
284
+ struct arrow_traits<Type::TIME64> {
285
+ static constexpr int npy_type = NPY_OBJECT;
286
+ static constexpr bool supports_nulls = true;
287
+ typedef typename npy_traits<NPY_DATETIME>::value_type T;
288
+ };
289
+
290
+ template <>
291
+ struct arrow_traits<Type::STRING> {
292
+ static constexpr int npy_type = NPY_OBJECT;
293
+ static constexpr bool supports_nulls = true;
294
+ };
295
+
296
+ template <>
297
+ struct arrow_traits<Type::BINARY> {
298
+ static constexpr int npy_type = NPY_OBJECT;
299
+ static constexpr bool supports_nulls = true;
300
+ };
301
+
302
+ static inline NPY_DATETIMEUNIT NumPyFrequency(TimeUnit::type unit) {
303
+ switch (unit) {
304
+ case TimestampType::Unit::SECOND:
305
+ return NPY_FR_s;
306
+ case TimestampType::Unit::MILLI:
307
+ return NPY_FR_ms;
308
+ break;
309
+ case TimestampType::Unit::MICRO:
310
+ return NPY_FR_us;
311
+ default:
312
+ // NANO
313
+ return NPY_FR_ns;
314
+ }
315
+ }
316
+
317
+ static inline int NumPyTypeSize(int npy_type) {
318
+ npy_type = fix_numpy_type_num(npy_type);
319
+
320
+ switch (npy_type) {
321
+ case NPY_BOOL:
322
+ case NPY_INT8:
323
+ case NPY_UINT8:
324
+ return 1;
325
+ case NPY_INT16:
326
+ case NPY_UINT16:
327
+ return 2;
328
+ case NPY_INT32:
329
+ case NPY_UINT32:
330
+ return 4;
331
+ case NPY_INT64:
332
+ case NPY_UINT64:
333
+ return 8;
334
+ case NPY_FLOAT16:
335
+ return 2;
336
+ case NPY_FLOAT32:
337
+ return 4;
338
+ case NPY_FLOAT64:
339
+ return 8;
340
+ case NPY_DATETIME:
341
+ return 8;
342
+ case NPY_OBJECT:
343
+ return sizeof(void*);
344
+ default:
345
+ ARROW_CHECK(false) << "unhandled numpy type";
346
+ break;
347
+ }
348
+ return -1;
349
+ }
350
+
351
+ } // namespace internal
352
+ } // namespace py
353
+ } // namespace arrow
player/runtime/python/Lib/site-packages/pyarrow/include/arrow/python/udf.h ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/compute/exec.h"
21
+ #include "arrow/compute/function.h"
22
+ #include "arrow/compute/registry.h"
23
+ #include "arrow/python/platform.h"
24
+ #include "arrow/record_batch.h"
25
+ #include "arrow/util/iterator.h"
26
+
27
+ #include "arrow/python/common.h"
28
+ #include "arrow/python/pyarrow.h"
29
+ #include "arrow/python/visibility.h"
30
+
31
+ namespace arrow {
32
+
33
+ namespace py {
34
+
35
+ // TODO: TODO(ARROW-16041): UDF Options are not exposed to the Python
36
+ // users. This feature will be included when extending to provide advanced
37
+ // options for the users.
38
+ struct ARROW_PYTHON_EXPORT UdfOptions {
39
+ std::string func_name;
40
+ compute::Arity arity;
41
+ compute::FunctionDoc func_doc;
42
+ std::vector<std::shared_ptr<DataType>> input_types;
43
+ std::shared_ptr<DataType> output_type;
44
+ };
45
+
46
+ /// \brief A context passed as the first argument of UDF functions.
47
+ struct ARROW_PYTHON_EXPORT UdfContext {
48
+ MemoryPool* pool;
49
+ int64_t batch_length;
50
+ };
51
+
52
+ using UdfWrapperCallback = std::function<PyObject*(
53
+ PyObject* user_function, const UdfContext& context, PyObject* inputs)>;
54
+
55
+ /// \brief register a Scalar user-defined-function from Python
56
+ Status ARROW_PYTHON_EXPORT RegisterScalarFunction(
57
+ PyObject* user_function, UdfWrapperCallback wrapper, const UdfOptions& options,
58
+ compute::FunctionRegistry* registry = NULLPTR);
59
+
60
+ /// \brief register a Table user-defined-function from Python
61
+ Status ARROW_PYTHON_EXPORT RegisterTabularFunction(
62
+ PyObject* user_function, UdfWrapperCallback wrapper, const UdfOptions& options,
63
+ compute::FunctionRegistry* registry = NULLPTR);
64
+
65
+ /// \brief register a Aggregate user-defined-function from Python
66
+ Status ARROW_PYTHON_EXPORT RegisterAggregateFunction(
67
+ PyObject* user_function, UdfWrapperCallback wrapper, const UdfOptions& options,
68
+ compute::FunctionRegistry* registry = NULLPTR);
69
+
70
+ /// \brief register a Vector user-defined-function from Python
71
+ Status ARROW_PYTHON_EXPORT RegisterVectorFunction(
72
+ PyObject* user_function, UdfWrapperCallback wrapper, const UdfOptions& options,
73
+ compute::FunctionRegistry* registry = NULLPTR);
74
+
75
+ Result<std::shared_ptr<RecordBatchReader>> ARROW_PYTHON_EXPORT
76
+ CallTabularFunction(const std::string& func_name, const std::vector<Datum>& args,
77
+ compute::FunctionRegistry* registry = NULLPTR);
78
+
79
+ } // namespace py
80
+
81
+ } // namespace arrow