aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/apache
diff options
context:
space:
mode:
authorstepandrey <stepandrey@yandex-team.com>2022-11-30 16:32:10 +0300
committerstepandrey <stepandrey@yandex-team.com>2022-11-30 16:32:10 +0300
commitb6b02f6683bc476c07dc34badbd641aa5a902e49 (patch)
tree15b63008edf61c5d29644a12fa5b14429524abee /contrib/libs/apache
parenta8f566e1db4827fefcd4a9003b9d7894aacd9a4c (diff)
downloadydb-b6b02f6683bc476c07dc34badbd641aa5a902e49.tar.gz
support Parquet in ydb cli
parquet file import implementation
Diffstat (limited to 'contrib/libs/apache')
-rw-r--r--contrib/libs/apache/arrow/cpp/src/arrow/filesystem/api.h27
-rw-r--r--contrib/libs/apache/arrow/cpp/src/arrow/python/api.h30
-rw-r--r--contrib/libs/apache/arrow/cpp/src/parquet/api/io.h20
-rw-r--r--contrib/libs/apache/arrow/cpp/src/parquet/api/reader.h35
-rw-r--r--contrib/libs/apache/arrow/cpp/src/parquet/api/schema.h21
-rw-r--r--contrib/libs/apache/arrow/cpp/src/parquet/api/writer.h25
6 files changed, 158 insertions, 0 deletions
diff --git a/contrib/libs/apache/arrow/cpp/src/arrow/filesystem/api.h b/contrib/libs/apache/arrow/cpp/src/arrow/filesystem/api.h
new file mode 100644
index 0000000000..c0d772c697
--- /dev/null
+++ b/contrib/libs/apache/arrow/cpp/src/arrow/filesystem/api.h
@@ -0,0 +1,27 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#pragma once
+
+#include "arrow/util/config.h" // IWYU pragma: export
+
+#include "arrow/filesystem/filesystem.h" // IWYU pragma: export
+#include "arrow/filesystem/localfs.h" // IWYU pragma: export
+#include "arrow/filesystem/mockfs.h" // IWYU pragma: export
+#ifdef ARROW_S3
+#error #include "arrow/filesystem/s3fs.h" // IWYU pragma: export
+#endif
diff --git a/contrib/libs/apache/arrow/cpp/src/arrow/python/api.h b/contrib/libs/apache/arrow/cpp/src/arrow/python/api.h
new file mode 100644
index 0000000000..a0b13d6d13
--- /dev/null
+++ b/contrib/libs/apache/arrow/cpp/src/arrow/python/api.h
@@ -0,0 +1,30 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#pragma once
+
+#include "arrow/python/arrow_to_pandas.h"
+#include "arrow/python/common.h"
+#include "arrow/python/datetime.h"
+#include "arrow/python/deserialize.h"
+#include "arrow/python/helpers.h"
+#include "arrow/python/inference.h"
+#include "arrow/python/io.h"
+#include "arrow/python/numpy_convert.h"
+#include "arrow/python/numpy_to_arrow.h"
+#include "arrow/python/python_to_arrow.h"
+#include "arrow/python/serialize.h"
diff --git a/contrib/libs/apache/arrow/cpp/src/parquet/api/io.h b/contrib/libs/apache/arrow/cpp/src/parquet/api/io.h
new file mode 100644
index 0000000000..28a00f12a7
--- /dev/null
+++ b/contrib/libs/apache/arrow/cpp/src/parquet/api/io.h
@@ -0,0 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#pragma once
+
+#include "parquet/exception.h"
diff --git a/contrib/libs/apache/arrow/cpp/src/parquet/api/reader.h b/contrib/libs/apache/arrow/cpp/src/parquet/api/reader.h
new file mode 100644
index 0000000000..7e746e8c5b
--- /dev/null
+++ b/contrib/libs/apache/arrow/cpp/src/parquet/api/reader.h
@@ -0,0 +1,35 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#pragma once
+
+// Column reader API
+#include "parquet/column_reader.h"
+#include "parquet/column_scanner.h"
+#include "parquet/exception.h"
+#include "parquet/file_reader.h"
+#include "parquet/metadata.h"
+#include "parquet/platform.h"
+#include "parquet/printer.h"
+#include "parquet/properties.h"
+#include "parquet/statistics.h"
+
+// Schemas
+#include "parquet/api/schema.h"
+
+// IO
+#include "parquet/api/io.h"
diff --git a/contrib/libs/apache/arrow/cpp/src/parquet/api/schema.h b/contrib/libs/apache/arrow/cpp/src/parquet/api/schema.h
new file mode 100644
index 0000000000..7ca714f47b
--- /dev/null
+++ b/contrib/libs/apache/arrow/cpp/src/parquet/api/schema.h
@@ -0,0 +1,21 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#pragma once
+
+// Schemas
+#include "parquet/schema.h"
diff --git a/contrib/libs/apache/arrow/cpp/src/parquet/api/writer.h b/contrib/libs/apache/arrow/cpp/src/parquet/api/writer.h
new file mode 100644
index 0000000000..b072dcf74d
--- /dev/null
+++ b/contrib/libs/apache/arrow/cpp/src/parquet/api/writer.h
@@ -0,0 +1,25 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#pragma once
+
+#include "parquet/api/io.h"
+#include "parquet/api/schema.h"
+#include "parquet/column_writer.h"
+#include "parquet/exception.h"
+#include "parquet/file_writer.h"
+#include "parquet/statistics.h"