Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +1 -0
- parrot/lib/libreadline.so.8 +3 -0
- parrot/lib/python3.10/site-packages/pyarrow/__pycache__/benchmark.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/__pycache__/compute.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/__pycache__/csv.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/__pycache__/dataset.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/__pycache__/feather.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/__pycache__/flight.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/__pycache__/fs.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/__pycache__/orc.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/__pycache__/types.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/include/parquet/metadata.h +568 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/__init__.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/arrow_16597.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/arrow_7980.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/conftest.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/pandas_examples.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/pandas_threaded_import.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/read_record_batch.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/strategies.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_acero.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_adhoc_memory_leak.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_builder.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_cffi.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_convert_builtin.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_cpp_internals.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_csv.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_cuda.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_cuda_numba_interop.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_dataset_encryption.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_deprecations.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_device.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_dlpack.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_exec_plan.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_extension_type.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_feather.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_flight.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_flight_async.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_fs.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_gandiva.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_gdb.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_io.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_ipc.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_json.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_jvm.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_memory.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_misc.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_orc.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_scalars.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_schema.cpython-310.pyc +0 -0
.gitattributes
CHANGED
|
@@ -105,3 +105,4 @@ parrot/lib/python3.10/site-packages/google/protobuf/__pycache__/descriptor_pb2.c
|
|
| 105 |
parrot/lib/libtinfo.so.6 filter=lfs diff=lfs merge=lfs -text
|
| 106 |
parrot/lib/python3.10/site-packages/aiohttp/_websocket.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
| 107 |
parrot/lib/libreadline.so.8.2 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 105 |
parrot/lib/libtinfo.so.6 filter=lfs diff=lfs merge=lfs -text
|
| 106 |
parrot/lib/python3.10/site-packages/aiohttp/_websocket.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
| 107 |
parrot/lib/libreadline.so.8.2 filter=lfs diff=lfs merge=lfs -text
|
| 108 |
+
parrot/lib/libreadline.so.8 filter=lfs diff=lfs merge=lfs -text
|
parrot/lib/libreadline.so.8
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b6a9d66a73115c872272bb479c8f29df1bf7d9b16e5913e083d64b7753ce1c6
|
| 3 |
+
size 411464
|
parrot/lib/python3.10/site-packages/pyarrow/__pycache__/benchmark.cpython-310.pyc
ADDED
|
Binary file (224 Bytes). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/__pycache__/compute.cpython-310.pyc
ADDED
|
Binary file (19.2 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/__pycache__/csv.cpython-310.pyc
ADDED
|
Binary file (419 Bytes). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/__pycache__/dataset.cpython-310.pyc
ADDED
|
Binary file (33.1 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/__pycache__/feather.cpython-310.pyc
ADDED
|
Binary file (8.18 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/__pycache__/flight.cpython-310.pyc
ADDED
|
Binary file (1.57 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/__pycache__/fs.cpython-310.pyc
ADDED
|
Binary file (11.5 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/__pycache__/orc.cpython-310.pyc
ADDED
|
Binary file (11.6 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/__pycache__/types.cpython-310.pyc
ADDED
|
Binary file (8.76 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/include/parquet/metadata.h
ADDED
|
@@ -0,0 +1,568 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 <cstdint>
|
| 21 |
+
#include <map>
|
| 22 |
+
#include <memory>
|
| 23 |
+
#include <optional>
|
| 24 |
+
#include <string>
|
| 25 |
+
#include <utility>
|
| 26 |
+
#include <vector>
|
| 27 |
+
|
| 28 |
+
#include "parquet/encryption/type_fwd.h"
|
| 29 |
+
#include "parquet/platform.h"
|
| 30 |
+
#include "parquet/properties.h"
|
| 31 |
+
#include "parquet/schema.h"
|
| 32 |
+
#include "parquet/types.h"
|
| 33 |
+
|
| 34 |
+
namespace parquet {
|
| 35 |
+
|
| 36 |
+
class ColumnDescriptor;
|
| 37 |
+
class EncodedStatistics;
|
| 38 |
+
class FileCryptoMetaData;
|
| 39 |
+
class Statistics;
|
| 40 |
+
class SchemaDescriptor;
|
| 41 |
+
|
| 42 |
+
namespace schema {
|
| 43 |
+
|
| 44 |
+
class ColumnPath;
|
| 45 |
+
|
| 46 |
+
} // namespace schema
|
| 47 |
+
|
| 48 |
+
using KeyValueMetadata = ::arrow::KeyValueMetadata;
|
| 49 |
+
|
| 50 |
+
class PARQUET_EXPORT ApplicationVersion {
|
| 51 |
+
public:
|
| 52 |
+
// Known Versions with Issues
|
| 53 |
+
static const ApplicationVersion& PARQUET_251_FIXED_VERSION();
|
| 54 |
+
static const ApplicationVersion& PARQUET_816_FIXED_VERSION();
|
| 55 |
+
static const ApplicationVersion& PARQUET_CPP_FIXED_STATS_VERSION();
|
| 56 |
+
static const ApplicationVersion& PARQUET_MR_FIXED_STATS_VERSION();
|
| 57 |
+
static const ApplicationVersion& PARQUET_CPP_10353_FIXED_VERSION();
|
| 58 |
+
|
| 59 |
+
// Application that wrote the file. e.g. "IMPALA"
|
| 60 |
+
std::string application_;
|
| 61 |
+
// Build name
|
| 62 |
+
std::string build_;
|
| 63 |
+
|
| 64 |
+
// Version of the application that wrote the file, expressed as
|
| 65 |
+
// (<major>.<minor>.<patch>). Unmatched parts default to 0.
|
| 66 |
+
// "1.2.3" => {1, 2, 3}
|
| 67 |
+
// "1.2" => {1, 2, 0}
|
| 68 |
+
// "1.2-cdh5" => {1, 2, 0}
|
| 69 |
+
struct {
|
| 70 |
+
int major;
|
| 71 |
+
int minor;
|
| 72 |
+
int patch;
|
| 73 |
+
std::string unknown;
|
| 74 |
+
std::string pre_release;
|
| 75 |
+
std::string build_info;
|
| 76 |
+
} version;
|
| 77 |
+
|
| 78 |
+
ApplicationVersion() = default;
|
| 79 |
+
explicit ApplicationVersion(const std::string& created_by);
|
| 80 |
+
ApplicationVersion(std::string application, int major, int minor, int patch);
|
| 81 |
+
|
| 82 |
+
// Returns true if version is strictly less than other_version
|
| 83 |
+
bool VersionLt(const ApplicationVersion& other_version) const;
|
| 84 |
+
|
| 85 |
+
// Returns true if version is strictly equal with other_version
|
| 86 |
+
bool VersionEq(const ApplicationVersion& other_version) const;
|
| 87 |
+
|
| 88 |
+
// Checks if the Version has the correct statistics for a given column
|
| 89 |
+
bool HasCorrectStatistics(Type::type primitive, EncodedStatistics& statistics,
|
| 90 |
+
SortOrder::type sort_order = SortOrder::SIGNED) const;
|
| 91 |
+
};
|
| 92 |
+
|
| 93 |
+
class PARQUET_EXPORT ColumnCryptoMetaData {
|
| 94 |
+
public:
|
| 95 |
+
static std::unique_ptr<ColumnCryptoMetaData> Make(const uint8_t* metadata);
|
| 96 |
+
~ColumnCryptoMetaData();
|
| 97 |
+
|
| 98 |
+
bool Equals(const ColumnCryptoMetaData& other) const;
|
| 99 |
+
|
| 100 |
+
std::shared_ptr<schema::ColumnPath> path_in_schema() const;
|
| 101 |
+
bool encrypted_with_footer_key() const;
|
| 102 |
+
const std::string& key_metadata() const;
|
| 103 |
+
|
| 104 |
+
private:
|
| 105 |
+
explicit ColumnCryptoMetaData(const uint8_t* metadata);
|
| 106 |
+
|
| 107 |
+
class ColumnCryptoMetaDataImpl;
|
| 108 |
+
std::unique_ptr<ColumnCryptoMetaDataImpl> impl_;
|
| 109 |
+
};
|
| 110 |
+
|
| 111 |
+
/// \brief Public struct for Thrift PageEncodingStats in ColumnChunkMetaData
|
| 112 |
+
struct PageEncodingStats {
|
| 113 |
+
PageType::type page_type;
|
| 114 |
+
Encoding::type encoding;
|
| 115 |
+
int32_t count;
|
| 116 |
+
};
|
| 117 |
+
|
| 118 |
+
/// \brief Public struct for location to page index in ColumnChunkMetaData.
|
| 119 |
+
struct IndexLocation {
|
| 120 |
+
/// File offset of the given index, in bytes
|
| 121 |
+
int64_t offset;
|
| 122 |
+
/// Length of the given index, in bytes
|
| 123 |
+
int32_t length;
|
| 124 |
+
};
|
| 125 |
+
|
| 126 |
+
/// \brief ColumnChunkMetaData is a proxy around format::ColumnChunkMetaData.
|
| 127 |
+
class PARQUET_EXPORT ColumnChunkMetaData {
|
| 128 |
+
public:
|
| 129 |
+
// API convenience to get a MetaData accessor
|
| 130 |
+
|
| 131 |
+
ARROW_DEPRECATED("Use the ReaderProperties-taking overload")
|
| 132 |
+
static std::unique_ptr<ColumnChunkMetaData> Make(
|
| 133 |
+
const void* metadata, const ColumnDescriptor* descr,
|
| 134 |
+
const ApplicationVersion* writer_version, int16_t row_group_ordinal = -1,
|
| 135 |
+
int16_t column_ordinal = -1,
|
| 136 |
+
std::shared_ptr<InternalFileDecryptor> file_decryptor = NULLPTR);
|
| 137 |
+
|
| 138 |
+
static std::unique_ptr<ColumnChunkMetaData> Make(
|
| 139 |
+
const void* metadata, const ColumnDescriptor* descr,
|
| 140 |
+
const ReaderProperties& properties = default_reader_properties(),
|
| 141 |
+
const ApplicationVersion* writer_version = NULLPTR, int16_t row_group_ordinal = -1,
|
| 142 |
+
int16_t column_ordinal = -1,
|
| 143 |
+
std::shared_ptr<InternalFileDecryptor> file_decryptor = NULLPTR);
|
| 144 |
+
|
| 145 |
+
~ColumnChunkMetaData();
|
| 146 |
+
|
| 147 |
+
bool Equals(const ColumnChunkMetaData& other) const;
|
| 148 |
+
|
| 149 |
+
// column chunk
|
| 150 |
+
int64_t file_offset() const;
|
| 151 |
+
|
| 152 |
+
// parameter is only used when a dataset is spread across multiple files
|
| 153 |
+
const std::string& file_path() const;
|
| 154 |
+
|
| 155 |
+
// column metadata
|
| 156 |
+
bool is_metadata_set() const;
|
| 157 |
+
Type::type type() const;
|
| 158 |
+
int64_t num_values() const;
|
| 159 |
+
std::shared_ptr<schema::ColumnPath> path_in_schema() const;
|
| 160 |
+
bool is_stats_set() const;
|
| 161 |
+
std::shared_ptr<Statistics> statistics() const;
|
| 162 |
+
|
| 163 |
+
Compression::type compression() const;
|
| 164 |
+
// Indicate if the ColumnChunk compression is supported by the current
|
| 165 |
+
// compiled parquet library.
|
| 166 |
+
bool can_decompress() const;
|
| 167 |
+
|
| 168 |
+
const std::vector<Encoding::type>& encodings() const;
|
| 169 |
+
const std::vector<PageEncodingStats>& encoding_stats() const;
|
| 170 |
+
std::optional<int64_t> bloom_filter_offset() const;
|
| 171 |
+
std::optional<int64_t> bloom_filter_length() const;
|
| 172 |
+
bool has_dictionary_page() const;
|
| 173 |
+
int64_t dictionary_page_offset() const;
|
| 174 |
+
int64_t data_page_offset() const;
|
| 175 |
+
bool has_index_page() const;
|
| 176 |
+
int64_t index_page_offset() const;
|
| 177 |
+
int64_t total_compressed_size() const;
|
| 178 |
+
int64_t total_uncompressed_size() const;
|
| 179 |
+
std::unique_ptr<ColumnCryptoMetaData> crypto_metadata() const;
|
| 180 |
+
std::optional<IndexLocation> GetColumnIndexLocation() const;
|
| 181 |
+
std::optional<IndexLocation> GetOffsetIndexLocation() const;
|
| 182 |
+
|
| 183 |
+
private:
|
| 184 |
+
explicit ColumnChunkMetaData(
|
| 185 |
+
const void* metadata, const ColumnDescriptor* descr, int16_t row_group_ordinal,
|
| 186 |
+
int16_t column_ordinal, const ReaderProperties& properties,
|
| 187 |
+
const ApplicationVersion* writer_version = NULLPTR,
|
| 188 |
+
std::shared_ptr<InternalFileDecryptor> file_decryptor = NULLPTR);
|
| 189 |
+
// PIMPL Idiom
|
| 190 |
+
class ColumnChunkMetaDataImpl;
|
| 191 |
+
std::unique_ptr<ColumnChunkMetaDataImpl> impl_;
|
| 192 |
+
};
|
| 193 |
+
|
| 194 |
+
/// \brief RowGroupMetaData is a proxy around format::RowGroupMetaData.
|
| 195 |
+
class PARQUET_EXPORT RowGroupMetaData {
|
| 196 |
+
public:
|
| 197 |
+
ARROW_DEPRECATED("Use the ReaderProperties-taking overload")
|
| 198 |
+
static std::unique_ptr<RowGroupMetaData> Make(
|
| 199 |
+
const void* metadata, const SchemaDescriptor* schema,
|
| 200 |
+
const ApplicationVersion* writer_version,
|
| 201 |
+
std::shared_ptr<InternalFileDecryptor> file_decryptor = NULLPTR);
|
| 202 |
+
|
| 203 |
+
/// \brief Create a RowGroupMetaData from a serialized thrift message.
|
| 204 |
+
static std::unique_ptr<RowGroupMetaData> Make(
|
| 205 |
+
const void* metadata, const SchemaDescriptor* schema,
|
| 206 |
+
const ReaderProperties& properties = default_reader_properties(),
|
| 207 |
+
const ApplicationVersion* writer_version = NULLPTR,
|
| 208 |
+
std::shared_ptr<InternalFileDecryptor> file_decryptor = NULLPTR);
|
| 209 |
+
|
| 210 |
+
~RowGroupMetaData();
|
| 211 |
+
|
| 212 |
+
bool Equals(const RowGroupMetaData& other) const;
|
| 213 |
+
|
| 214 |
+
/// \brief The number of columns in this row group. The order must match the
|
| 215 |
+
/// parent's column ordering.
|
| 216 |
+
int num_columns() const;
|
| 217 |
+
|
| 218 |
+
/// \brief Return the ColumnChunkMetaData of the corresponding column ordinal.
|
| 219 |
+
///
|
| 220 |
+
/// WARNING, the returned object references memory location in it's parent
|
| 221 |
+
/// (RowGroupMetaData) object. Hence, the parent must outlive the returned
|
| 222 |
+
/// object.
|
| 223 |
+
///
|
| 224 |
+
/// \param[in] index of the ColumnChunkMetaData to retrieve.
|
| 225 |
+
///
|
| 226 |
+
/// \throws ParquetException if the index is out of bound.
|
| 227 |
+
std::unique_ptr<ColumnChunkMetaData> ColumnChunk(int index) const;
|
| 228 |
+
|
| 229 |
+
/// \brief Number of rows in this row group.
|
| 230 |
+
int64_t num_rows() const;
|
| 231 |
+
|
| 232 |
+
/// \brief Total byte size of all the uncompressed column data in this row group.
|
| 233 |
+
int64_t total_byte_size() const;
|
| 234 |
+
|
| 235 |
+
/// \brief Total byte size of all the compressed (and potentially encrypted)
|
| 236 |
+
/// column data in this row group.
|
| 237 |
+
///
|
| 238 |
+
/// This information is optional and may be 0 if omitted.
|
| 239 |
+
int64_t total_compressed_size() const;
|
| 240 |
+
|
| 241 |
+
/// \brief Byte offset from beginning of file to first page (data or
|
| 242 |
+
/// dictionary) in this row group
|
| 243 |
+
///
|
| 244 |
+
/// The file_offset field that this method exposes is optional. This method
|
| 245 |
+
/// will return 0 if that field is not set to a meaningful value.
|
| 246 |
+
int64_t file_offset() const;
|
| 247 |
+
// Return const-pointer to make it clear that this object is not to be copied
|
| 248 |
+
const SchemaDescriptor* schema() const;
|
| 249 |
+
// Indicate if all of the RowGroup's ColumnChunks can be decompressed.
|
| 250 |
+
bool can_decompress() const;
|
| 251 |
+
// Sorting columns of the row group if any.
|
| 252 |
+
std::vector<SortingColumn> sorting_columns() const;
|
| 253 |
+
|
| 254 |
+
private:
|
| 255 |
+
explicit RowGroupMetaData(
|
| 256 |
+
const void* metadata, const SchemaDescriptor* schema,
|
| 257 |
+
const ReaderProperties& properties,
|
| 258 |
+
const ApplicationVersion* writer_version = NULLPTR,
|
| 259 |
+
std::shared_ptr<InternalFileDecryptor> file_decryptor = NULLPTR);
|
| 260 |
+
// PIMPL Idiom
|
| 261 |
+
class RowGroupMetaDataImpl;
|
| 262 |
+
std::unique_ptr<RowGroupMetaDataImpl> impl_;
|
| 263 |
+
};
|
| 264 |
+
|
| 265 |
+
class FileMetaDataBuilder;
|
| 266 |
+
|
| 267 |
+
/// \brief FileMetaData is a proxy around format::FileMetaData.
|
| 268 |
+
class PARQUET_EXPORT FileMetaData {
|
| 269 |
+
public:
|
| 270 |
+
ARROW_DEPRECATED("Use the ReaderProperties-taking overload")
|
| 271 |
+
static std::shared_ptr<FileMetaData> Make(
|
| 272 |
+
const void* serialized_metadata, uint32_t* inout_metadata_len,
|
| 273 |
+
std::shared_ptr<InternalFileDecryptor> file_decryptor);
|
| 274 |
+
|
| 275 |
+
/// \brief Create a FileMetaData from a serialized thrift message.
|
| 276 |
+
static std::shared_ptr<FileMetaData> Make(
|
| 277 |
+
const void* serialized_metadata, uint32_t* inout_metadata_len,
|
| 278 |
+
const ReaderProperties& properties = default_reader_properties(),
|
| 279 |
+
std::shared_ptr<InternalFileDecryptor> file_decryptor = NULLPTR);
|
| 280 |
+
|
| 281 |
+
~FileMetaData();
|
| 282 |
+
|
| 283 |
+
bool Equals(const FileMetaData& other) const;
|
| 284 |
+
|
| 285 |
+
/// \brief The number of parquet "leaf" columns.
|
| 286 |
+
///
|
| 287 |
+
/// Parquet thrift definition requires that nested schema elements are
|
| 288 |
+
/// flattened. This method returns the number of columns in the flattened
|
| 289 |
+
/// version.
|
| 290 |
+
/// For instance, if the schema looks like this :
|
| 291 |
+
/// 0 foo.bar
|
| 292 |
+
/// foo.bar.baz 0
|
| 293 |
+
/// foo.bar.baz2 1
|
| 294 |
+
/// foo.qux 2
|
| 295 |
+
/// 1 foo2 3
|
| 296 |
+
/// 2 foo3 4
|
| 297 |
+
/// This method will return 5, because there are 5 "leaf" fields (so 5
|
| 298 |
+
/// flattened fields)
|
| 299 |
+
int num_columns() const;
|
| 300 |
+
|
| 301 |
+
/// \brief The number of flattened schema elements.
|
| 302 |
+
///
|
| 303 |
+
/// Parquet thrift definition requires that nested schema elements are
|
| 304 |
+
/// flattened. This method returns the total number of elements in the
|
| 305 |
+
/// flattened list.
|
| 306 |
+
int num_schema_elements() const;
|
| 307 |
+
|
| 308 |
+
/// \brief The total number of rows.
|
| 309 |
+
///
|
| 310 |
+
/// If the FileMetaData was obtained by calling `SubSet()`, this is the total
|
| 311 |
+
/// number of rows in the selected row groups.
|
| 312 |
+
int64_t num_rows() const;
|
| 313 |
+
|
| 314 |
+
/// \brief The number of row groups in the file.
|
| 315 |
+
///
|
| 316 |
+
/// If the FileMetaData was obtained by calling `SubSet()`, this is the number
|
| 317 |
+
/// of selected row groups.
|
| 318 |
+
int num_row_groups() const;
|
| 319 |
+
|
| 320 |
+
/// \brief Return the RowGroupMetaData of the corresponding row group ordinal.
|
| 321 |
+
///
|
| 322 |
+
/// WARNING, the returned object references memory location in it's parent
|
| 323 |
+
/// (FileMetaData) object. Hence, the parent must outlive the returned object.
|
| 324 |
+
///
|
| 325 |
+
/// \param[in] index of the RowGroup to retrieve.
|
| 326 |
+
///
|
| 327 |
+
/// \throws ParquetException if the index is out of bound.
|
| 328 |
+
std::unique_ptr<RowGroupMetaData> RowGroup(int index) const;
|
| 329 |
+
|
| 330 |
+
/// \brief Return the "version" of the file
|
| 331 |
+
///
|
| 332 |
+
/// WARNING: The value returned by this method is unreliable as 1) the Parquet
|
| 333 |
+
/// file metadata stores the version as a single integer and 2) some producers
|
| 334 |
+
/// are known to always write a hardcoded value. Therefore, you cannot use
|
| 335 |
+
/// this value to know which features are used in the file.
|
| 336 |
+
ParquetVersion::type version() const;
|
| 337 |
+
|
| 338 |
+
/// \brief Return the application's user-agent string of the writer.
|
| 339 |
+
const std::string& created_by() const;
|
| 340 |
+
|
| 341 |
+
/// \brief Return the application's version of the writer.
|
| 342 |
+
const ApplicationVersion& writer_version() const;
|
| 343 |
+
|
| 344 |
+
/// \brief Size of the original thrift encoded metadata footer.
|
| 345 |
+
uint32_t size() const;
|
| 346 |
+
|
| 347 |
+
/// \brief Indicate if all of the FileMetaData's RowGroups can be decompressed.
|
| 348 |
+
///
|
| 349 |
+
/// This will return false if any of the RowGroup's page is compressed with a
|
| 350 |
+
/// compression format which is not compiled in the current parquet library.
|
| 351 |
+
bool can_decompress() const;
|
| 352 |
+
|
| 353 |
+
bool is_encryption_algorithm_set() const;
|
| 354 |
+
EncryptionAlgorithm encryption_algorithm() const;
|
| 355 |
+
const std::string& footer_signing_key_metadata() const;
|
| 356 |
+
|
| 357 |
+
/// \brief Verify signature of FileMetaData when file is encrypted but footer
|
| 358 |
+
/// is not encrypted (plaintext footer).
|
| 359 |
+
bool VerifySignature(const void* signature);
|
| 360 |
+
|
| 361 |
+
void WriteTo(::arrow::io::OutputStream* dst,
|
| 362 |
+
const std::shared_ptr<Encryptor>& encryptor = NULLPTR) const;
|
| 363 |
+
|
| 364 |
+
/// \brief Return Thrift-serialized representation of the metadata as a
|
| 365 |
+
/// string
|
| 366 |
+
std::string SerializeToString() const;
|
| 367 |
+
|
| 368 |
+
// Return const-pointer to make it clear that this object is not to be copied
|
| 369 |
+
const SchemaDescriptor* schema() const;
|
| 370 |
+
|
| 371 |
+
const std::shared_ptr<const KeyValueMetadata>& key_value_metadata() const;
|
| 372 |
+
|
| 373 |
+
/// \brief Set a path to all ColumnChunk for all RowGroups.
|
| 374 |
+
///
|
| 375 |
+
/// Commonly used by systems (Dask, Spark) who generates an metadata-only
|
| 376 |
+
/// parquet file. The path is usually relative to said index file.
|
| 377 |
+
///
|
| 378 |
+
/// \param[in] path to set.
|
| 379 |
+
void set_file_path(const std::string& path);
|
| 380 |
+
|
| 381 |
+
/// \brief Merge row groups from another metadata file into this one.
|
| 382 |
+
///
|
| 383 |
+
/// The schema of the input FileMetaData must be equal to the
|
| 384 |
+
/// schema of this object.
|
| 385 |
+
///
|
| 386 |
+
/// This is used by systems who creates an aggregate metadata-only file by
|
| 387 |
+
/// concatenating the row groups of multiple files. This newly created
|
| 388 |
+
/// metadata file acts as an index of all available row groups.
|
| 389 |
+
///
|
| 390 |
+
/// \param[in] other FileMetaData to merge the row groups from.
|
| 391 |
+
///
|
| 392 |
+
/// \throws ParquetException if schemas are not equal.
|
| 393 |
+
void AppendRowGroups(const FileMetaData& other);
|
| 394 |
+
|
| 395 |
+
/// \brief Return a FileMetaData containing a subset of the row groups in this
|
| 396 |
+
/// FileMetaData.
|
| 397 |
+
std::shared_ptr<FileMetaData> Subset(const std::vector<int>& row_groups) const;
|
| 398 |
+
|
| 399 |
+
private:
|
| 400 |
+
friend FileMetaDataBuilder;
|
| 401 |
+
friend class SerializedFile;
|
| 402 |
+
friend class SerializedRowGroup;
|
| 403 |
+
|
| 404 |
+
explicit FileMetaData(const void* serialized_metadata, uint32_t* metadata_len,
|
| 405 |
+
const ReaderProperties& properties,
|
| 406 |
+
std::shared_ptr<InternalFileDecryptor> file_decryptor = NULLPTR);
|
| 407 |
+
|
| 408 |
+
void set_file_decryptor(std::shared_ptr<InternalFileDecryptor> file_decryptor);
|
| 409 |
+
const std::shared_ptr<InternalFileDecryptor>& file_decryptor() const;
|
| 410 |
+
|
| 411 |
+
// PIMPL Idiom
|
| 412 |
+
FileMetaData();
|
| 413 |
+
class FileMetaDataImpl;
|
| 414 |
+
std::unique_ptr<FileMetaDataImpl> impl_;
|
| 415 |
+
};
|
| 416 |
+
|
| 417 |
+
class PARQUET_EXPORT FileCryptoMetaData {
|
| 418 |
+
public:
|
| 419 |
+
// API convenience to get a MetaData accessor
|
| 420 |
+
static std::shared_ptr<FileCryptoMetaData> Make(
|
| 421 |
+
const uint8_t* serialized_metadata, uint32_t* metadata_len,
|
| 422 |
+
const ReaderProperties& properties = default_reader_properties());
|
| 423 |
+
~FileCryptoMetaData();
|
| 424 |
+
|
| 425 |
+
EncryptionAlgorithm encryption_algorithm() const;
|
| 426 |
+
const std::string& key_metadata() const;
|
| 427 |
+
|
| 428 |
+
void WriteTo(::arrow::io::OutputStream* dst) const;
|
| 429 |
+
|
| 430 |
+
private:
|
| 431 |
+
friend FileMetaDataBuilder;
|
| 432 |
+
FileCryptoMetaData(const uint8_t* serialized_metadata, uint32_t* metadata_len,
|
| 433 |
+
const ReaderProperties& properties);
|
| 434 |
+
|
| 435 |
+
// PIMPL Idiom
|
| 436 |
+
FileCryptoMetaData();
|
| 437 |
+
class FileCryptoMetaDataImpl;
|
| 438 |
+
std::unique_ptr<FileCryptoMetaDataImpl> impl_;
|
| 439 |
+
};
|
| 440 |
+
|
| 441 |
+
// Builder API
|
| 442 |
+
class PARQUET_EXPORT ColumnChunkMetaDataBuilder {
|
| 443 |
+
public:
|
| 444 |
+
// API convenience to get a MetaData reader
|
| 445 |
+
static std::unique_ptr<ColumnChunkMetaDataBuilder> Make(
|
| 446 |
+
std::shared_ptr<WriterProperties> props, const ColumnDescriptor* column);
|
| 447 |
+
|
| 448 |
+
static std::unique_ptr<ColumnChunkMetaDataBuilder> Make(
|
| 449 |
+
std::shared_ptr<WriterProperties> props, const ColumnDescriptor* column,
|
| 450 |
+
void* contents);
|
| 451 |
+
|
| 452 |
+
~ColumnChunkMetaDataBuilder();
|
| 453 |
+
|
| 454 |
+
// column chunk
|
| 455 |
+
// Used when a dataset is spread across multiple files
|
| 456 |
+
void set_file_path(const std::string& path);
|
| 457 |
+
// column metadata
|
| 458 |
+
void SetStatistics(const EncodedStatistics& stats);
|
| 459 |
+
// get the column descriptor
|
| 460 |
+
const ColumnDescriptor* descr() const;
|
| 461 |
+
|
| 462 |
+
int64_t total_compressed_size() const;
|
| 463 |
+
// commit the metadata
|
| 464 |
+
|
| 465 |
+
void Finish(int64_t num_values, int64_t dictionary_page_offset,
|
| 466 |
+
int64_t index_page_offset, int64_t data_page_offset,
|
| 467 |
+
int64_t compressed_size, int64_t uncompressed_size, bool has_dictionary,
|
| 468 |
+
bool dictionary_fallback,
|
| 469 |
+
const std::map<Encoding::type, int32_t>& dict_encoding_stats_,
|
| 470 |
+
const std::map<Encoding::type, int32_t>& data_encoding_stats_,
|
| 471 |
+
const std::shared_ptr<Encryptor>& encryptor = NULLPTR);
|
| 472 |
+
|
| 473 |
+
// The metadata contents, suitable for passing to ColumnChunkMetaData::Make
|
| 474 |
+
const void* contents() const;
|
| 475 |
+
|
| 476 |
+
// For writing metadata at end of column chunk
|
| 477 |
+
void WriteTo(::arrow::io::OutputStream* sink);
|
| 478 |
+
|
| 479 |
+
private:
|
| 480 |
+
explicit ColumnChunkMetaDataBuilder(std::shared_ptr<WriterProperties> props,
|
| 481 |
+
const ColumnDescriptor* column);
|
| 482 |
+
explicit ColumnChunkMetaDataBuilder(std::shared_ptr<WriterProperties> props,
|
| 483 |
+
const ColumnDescriptor* column, void* contents);
|
| 484 |
+
// PIMPL Idiom
|
| 485 |
+
class ColumnChunkMetaDataBuilderImpl;
|
| 486 |
+
std::unique_ptr<ColumnChunkMetaDataBuilderImpl> impl_;
|
| 487 |
+
};
|
| 488 |
+
|
| 489 |
+
class PARQUET_EXPORT RowGroupMetaDataBuilder {
|
| 490 |
+
public:
|
| 491 |
+
// API convenience to get a MetaData reader
|
| 492 |
+
static std::unique_ptr<RowGroupMetaDataBuilder> Make(
|
| 493 |
+
std::shared_ptr<WriterProperties> props, const SchemaDescriptor* schema_,
|
| 494 |
+
void* contents);
|
| 495 |
+
|
| 496 |
+
~RowGroupMetaDataBuilder();
|
| 497 |
+
|
| 498 |
+
ColumnChunkMetaDataBuilder* NextColumnChunk();
|
| 499 |
+
int num_columns();
|
| 500 |
+
int64_t num_rows();
|
| 501 |
+
int current_column() const;
|
| 502 |
+
|
| 503 |
+
void set_num_rows(int64_t num_rows);
|
| 504 |
+
|
| 505 |
+
// commit the metadata
|
| 506 |
+
void Finish(int64_t total_bytes_written, int16_t row_group_ordinal = -1);
|
| 507 |
+
|
| 508 |
+
private:
|
| 509 |
+
explicit RowGroupMetaDataBuilder(std::shared_ptr<WriterProperties> props,
|
| 510 |
+
const SchemaDescriptor* schema_, void* contents);
|
| 511 |
+
// PIMPL Idiom
|
| 512 |
+
class RowGroupMetaDataBuilderImpl;
|
| 513 |
+
std::unique_ptr<RowGroupMetaDataBuilderImpl> impl_;
|
| 514 |
+
};
|
| 515 |
+
|
| 516 |
+
/// \brief Public struct for location to all page indexes in a parquet file.
|
| 517 |
+
struct PageIndexLocation {
|
| 518 |
+
/// Alias type of page index location of a row group. The index location
|
| 519 |
+
/// is located by column ordinal. If the column does not have the page index,
|
| 520 |
+
/// its value is set to std::nullopt.
|
| 521 |
+
using RowGroupIndexLocation = std::vector<std::optional<IndexLocation>>;
|
| 522 |
+
/// Alias type of page index location of a parquet file. The index location
|
| 523 |
+
/// is located by the row group ordinal.
|
| 524 |
+
using FileIndexLocation = std::map<size_t, RowGroupIndexLocation>;
|
| 525 |
+
/// Row group column index locations which uses row group ordinal as the key.
|
| 526 |
+
FileIndexLocation column_index_location;
|
| 527 |
+
/// Row group offset index locations which uses row group ordinal as the key.
|
| 528 |
+
FileIndexLocation offset_index_location;
|
| 529 |
+
};
|
| 530 |
+
|
| 531 |
+
class PARQUET_EXPORT FileMetaDataBuilder {
|
| 532 |
+
public:
|
| 533 |
+
ARROW_DEPRECATED("Deprecated in 12.0.0. Use overload without KeyValueMetadata instead.")
|
| 534 |
+
static std::unique_ptr<FileMetaDataBuilder> Make(
|
| 535 |
+
const SchemaDescriptor* schema, std::shared_ptr<WriterProperties> props,
|
| 536 |
+
std::shared_ptr<const KeyValueMetadata> key_value_metadata);
|
| 537 |
+
|
| 538 |
+
// API convenience to get a MetaData builder
|
| 539 |
+
static std::unique_ptr<FileMetaDataBuilder> Make(
|
| 540 |
+
const SchemaDescriptor* schema, std::shared_ptr<WriterProperties> props);
|
| 541 |
+
|
| 542 |
+
~FileMetaDataBuilder();
|
| 543 |
+
|
| 544 |
+
// The prior RowGroupMetaDataBuilder (if any) is destroyed
|
| 545 |
+
RowGroupMetaDataBuilder* AppendRowGroup();
|
| 546 |
+
|
| 547 |
+
// Update location to all page indexes in the parquet file
|
| 548 |
+
void SetPageIndexLocation(const PageIndexLocation& location);
|
| 549 |
+
|
| 550 |
+
// Complete the Thrift structure
|
| 551 |
+
std::unique_ptr<FileMetaData> Finish(
|
| 552 |
+
const std::shared_ptr<const KeyValueMetadata>& key_value_metadata = NULLPTR);
|
| 553 |
+
|
| 554 |
+
// crypto metadata
|
| 555 |
+
std::unique_ptr<FileCryptoMetaData> GetCryptoMetaData();
|
| 556 |
+
|
| 557 |
+
private:
|
| 558 |
+
explicit FileMetaDataBuilder(
|
| 559 |
+
const SchemaDescriptor* schema, std::shared_ptr<WriterProperties> props,
|
| 560 |
+
std::shared_ptr<const KeyValueMetadata> key_value_metadata = NULLPTR);
|
| 561 |
+
// PIMPL Idiom
|
| 562 |
+
class FileMetaDataBuilderImpl;
|
| 563 |
+
std::unique_ptr<FileMetaDataBuilderImpl> impl_;
|
| 564 |
+
};
|
| 565 |
+
|
| 566 |
+
PARQUET_EXPORT std::string ParquetVersionToString(ParquetVersion::type ver);
|
| 567 |
+
|
| 568 |
+
} // namespace parquet
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (165 Bytes). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/arrow_16597.cpython-310.pyc
ADDED
|
Binary file (888 Bytes). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/arrow_7980.cpython-310.pyc
ADDED
|
Binary file (355 Bytes). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/conftest.cpython-310.pyc
ADDED
|
Binary file (8.14 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/pandas_examples.cpython-310.pyc
ADDED
|
Binary file (3.49 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/pandas_threaded_import.cpython-310.pyc
ADDED
|
Binary file (841 Bytes). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/read_record_batch.cpython-310.pyc
ADDED
|
Binary file (349 Bytes). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/strategies.cpython-310.pyc
ADDED
|
Binary file (9.37 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_acero.cpython-310.pyc
ADDED
|
Binary file (9.48 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_adhoc_memory_leak.cpython-310.pyc
ADDED
|
Binary file (1.15 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_builder.cpython-310.pyc
ADDED
|
Binary file (2.05 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_cffi.cpython-310.pyc
ADDED
|
Binary file (18.7 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_convert_builtin.cpython-310.pyc
ADDED
|
Binary file (71.2 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_cpp_internals.cpython-310.pyc
ADDED
|
Binary file (1.1 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_csv.cpython-310.pyc
ADDED
|
Binary file (52.2 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_cuda.cpython-310.pyc
ADDED
|
Binary file (23.2 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_cuda_numba_interop.cpython-310.pyc
ADDED
|
Binary file (6.06 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_dataset_encryption.cpython-310.pyc
ADDED
|
Binary file (5.74 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_deprecations.cpython-310.pyc
ADDED
|
Binary file (215 Bytes). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_device.cpython-310.pyc
ADDED
|
Binary file (1.06 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_dlpack.cpython-310.pyc
ADDED
|
Binary file (3.69 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_exec_plan.cpython-310.pyc
ADDED
|
Binary file (7.07 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_extension_type.cpython-310.pyc
ADDED
|
Binary file (46.2 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_feather.cpython-310.pyc
ADDED
|
Binary file (21.9 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_flight.cpython-310.pyc
ADDED
|
Binary file (81.9 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_flight_async.cpython-310.pyc
ADDED
|
Binary file (2.7 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_fs.cpython-310.pyc
ADDED
|
Binary file (49.5 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_gandiva.cpython-310.pyc
ADDED
|
Binary file (10.6 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_gdb.cpython-310.pyc
ADDED
|
Binary file (33.3 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_io.cpython-310.pyc
ADDED
|
Binary file (58.9 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_ipc.cpython-310.pyc
ADDED
|
Binary file (35.6 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_json.cpython-310.pyc
ADDED
|
Binary file (10.6 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_jvm.cpython-310.pyc
ADDED
|
Binary file (9.11 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_memory.cpython-310.pyc
ADDED
|
Binary file (7.53 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_misc.cpython-310.pyc
ADDED
|
Binary file (6.92 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_orc.cpython-310.pyc
ADDED
|
Binary file (12.2 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_scalars.cpython-310.pyc
ADDED
|
Binary file (23.4 kB). View file
|
|
|
parrot/lib/python3.10/site-packages/pyarrow/tests/__pycache__/test_schema.cpython-310.pyc
ADDED
|
Binary file (18.3 kB). View file
|
|
|