diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
commit | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch) | |
tree | 012bb94d777798f1f56ac1cec429509766d05181 /contrib/libs/apache | |
parent | 6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff) | |
download | ydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/apache')
34 files changed, 780 insertions, 780 deletions
diff --git a/contrib/libs/apache/arrow/cpp/src/arrow/array/README.md b/contrib/libs/apache/arrow/cpp/src/arrow/array/README.md index 01ffa104eb..fd450d47d9 100644 --- a/contrib/libs/apache/arrow/cpp/src/arrow/array/README.md +++ b/contrib/libs/apache/arrow/cpp/src/arrow/array/README.md @@ -1,20 +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. ---> - -## Implementation details related to columnar (array) data structures +<!--- + 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. +--> + +## Implementation details related to columnar (array) data structures diff --git a/contrib/libs/apache/arrow/cpp/src/arrow/compute/README.md b/contrib/libs/apache/arrow/cpp/src/arrow/compute/README.md index 80d8918e3d..269780351e 100644 --- a/contrib/libs/apache/arrow/cpp/src/arrow/compute/README.md +++ b/contrib/libs/apache/arrow/cpp/src/arrow/compute/README.md @@ -1,58 +1,58 @@ -<!--- - 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. ---> - -## Apache Arrow C++ Compute Functions - -This submodule contains analytical functions that process primarily Arrow -columnar data; some functions can process scalar or Arrow-based array -inputs. These are intended for use inside query engines, data frame libraries, -etc. - -Many functions have SQL-like semantics in that they perform elementwise or -scalar operations on whole arrays at a time. Other functions are not SQL-like -and compute results that may be a different length or whose results depend on -the order of the values. - -Some basic terminology: - -* We use the term "function" to refer to particular general operation that may - have many different implementations corresponding to different combinations - of types or function behavior options. -* We call a specific implementation of a function a "kernel". When executing a - function on inputs, we must first select a suitable kernel (kernel selection - is called "dispatching") corresponding to the value types of the inputs -* Functions along with their kernel implementations are collected in a - "function registry". Given a function name and argument types, we can look up - that function and dispatch to a compatible kernel. - -Types of functions - -* Scalar functions: elementwise functions that perform scalar operations in a - vectorized manner. These functions are generally valid for SQL-like - context. These are called "scalar" in that the functions executed consider - each value in an array independently, and the output array or arrays have the - same length as the input arrays. The result for each array cell is generally - independent of its position in the array. -* Vector functions, which produce a result whose output is generally dependent - on the entire contents of the input arrays. These functions **are generally - not valid** for SQL-like processing because the output size may be different - than the input size, and the result may change based on the order of the - values in the array. This includes things like array subselection, sorting, - hashing, and more. -* Scalar aggregate functions of which can be used in a SQL-like context
\ No newline at end of file +<!--- + 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. +--> + +## Apache Arrow C++ Compute Functions + +This submodule contains analytical functions that process primarily Arrow +columnar data; some functions can process scalar or Arrow-based array +inputs. These are intended for use inside query engines, data frame libraries, +etc. + +Many functions have SQL-like semantics in that they perform elementwise or +scalar operations on whole arrays at a time. Other functions are not SQL-like +and compute results that may be a different length or whose results depend on +the order of the values. + +Some basic terminology: + +* We use the term "function" to refer to particular general operation that may + have many different implementations corresponding to different combinations + of types or function behavior options. +* We call a specific implementation of a function a "kernel". When executing a + function on inputs, we must first select a suitable kernel (kernel selection + is called "dispatching") corresponding to the value types of the inputs +* Functions along with their kernel implementations are collected in a + "function registry". Given a function name and argument types, we can look up + that function and dispatch to a compatible kernel. + +Types of functions + +* Scalar functions: elementwise functions that perform scalar operations in a + vectorized manner. These functions are generally valid for SQL-like + context. These are called "scalar" in that the functions executed consider + each value in an array independently, and the output array or arrays have the + same length as the input arrays. The result for each array cell is generally + independent of its position in the array. +* Vector functions, which produce a result whose output is generally dependent + on the entire contents of the input arrays. These functions **are generally + not valid** for SQL-like processing because the output size may be different + than the input size, and the result may change based on the order of the + values in the array. This includes things like array subselection, sorting, + hashing, and more. +* Scalar aggregate functions of which can be used in a SQL-like context
\ No newline at end of file diff --git a/contrib/libs/apache/arrow/cpp/src/arrow/io/api.h b/contrib/libs/apache/arrow/cpp/src/arrow/io/api.h index 3bfde6de45..5d6269a05a 100644 --- a/contrib/libs/apache/arrow/cpp/src/arrow/io/api.h +++ b/contrib/libs/apache/arrow/cpp/src/arrow/io/api.h @@ -1,24 +1,24 @@ -// 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/io/buffered.h" -#include "arrow/io/compressed.h" -#include "arrow/io/file.h" -#include "arrow/io/interfaces.h" -#include "arrow/io/memory.h" +// 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/io/buffered.h" +#include "arrow/io/compressed.h" +#include "arrow/io/file.h" +#include "arrow/io/interfaces.h" +#include "arrow/io/memory.h" diff --git a/contrib/libs/apache/arrow/cpp/src/arrow/ipc/api.h b/contrib/libs/apache/arrow/cpp/src/arrow/ipc/api.h index b5690aed8d..339a25a0d6 100644 --- a/contrib/libs/apache/arrow/cpp/src/arrow/ipc/api.h +++ b/contrib/libs/apache/arrow/cpp/src/arrow/ipc/api.h @@ -1,25 +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 "arrow/ipc/dictionary.h" -#include "arrow/ipc/feather.h" -#include "arrow/ipc/json_simple.h" -#include "arrow/ipc/message.h" -#include "arrow/ipc/reader.h" -#include "arrow/ipc/writer.h" +// 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/ipc/dictionary.h" +#include "arrow/ipc/feather.h" +#include "arrow/ipc/json_simple.h" +#include "arrow/ipc/message.h" +#include "arrow/ipc/reader.h" +#include "arrow/ipc/writer.h" diff --git a/contrib/libs/apache/arrow/cpp/src/arrow/vendored/datetime/README.md b/contrib/libs/apache/arrow/cpp/src/arrow/vendored/datetime/README.md index 811b6935ff..308fb54aaf 100644 --- a/contrib/libs/apache/arrow/cpp/src/arrow/vendored/datetime/README.md +++ b/contrib/libs/apache/arrow/cpp/src/arrow/vendored/datetime/README.md @@ -1,21 +1,21 @@ -<!-- -The MIT License (MIT) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. ---> - -# Utilities for supporting date time functions - -Sources for datetime are adapted from Howard Hinnant's date library -(https://github.com/HowardHinnant/date). - -Sources are taken from v3.0.0 release of the above project. - +<!-- +The MIT License (MIT) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +--> + +# Utilities for supporting date time functions + +Sources for datetime are adapted from Howard Hinnant's date library +(https://github.com/HowardHinnant/date). + +Sources are taken from v3.0.0 release of the above project. + diff --git a/contrib/libs/apache/arrow/cpp/src/arrow/vendored/musl/README.md b/contrib/libs/apache/arrow/cpp/src/arrow/vendored/musl/README.md index 40962a14ca..88eb310978 100644 --- a/contrib/libs/apache/arrow/cpp/src/arrow/vendored/musl/README.md +++ b/contrib/libs/apache/arrow/cpp/src/arrow/vendored/musl/README.md @@ -1,25 +1,25 @@ -<!-- -Copyright © 2005-2020 Rich Felker, et al. - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---> - -Assorted utility functions are adapted from the musl libc project -(https://musl.libc.org/). +<!-- +Copyright © 2005-2020 Rich Felker, et al. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +--> + +Assorted utility functions are adapted from the musl libc project +(https://musl.libc.org/). diff --git a/contrib/libs/apache/arrow/cpp/src/arrow/vendored/portable-snippets/README.md b/contrib/libs/apache/arrow/cpp/src/arrow/vendored/portable-snippets/README.md index 9c67b7baa1..93bbdc1b35 100644 --- a/contrib/libs/apache/arrow/cpp/src/arrow/vendored/portable-snippets/README.md +++ b/contrib/libs/apache/arrow/cpp/src/arrow/vendored/portable-snippets/README.md @@ -1,10 +1,10 @@ -<!--- -Each source file contains a preamble explaining the license situation -for that file, which takes priority over this file. With the -exception of some code pulled in from other repositories (such as -µnit, an MIT-licensed project which is used for testing), the code is -public domain, released using the CC0 1.0 Universal dedication. ---> - -The files in this directory are vendored from portable-snippets -git changeset f596f8b0a4b8a6ea1166c2361a5cb7e6f802c5ea. +<!--- +Each source file contains a preamble explaining the license situation +for that file, which takes priority over this file. With the +exception of some code pulled in from other repositories (such as +µnit, an MIT-licensed project which is used for testing), the code is +public domain, released using the CC0 1.0 Universal dedication. +--> + +The files in this directory are vendored from portable-snippets +git changeset f596f8b0a4b8a6ea1166c2361a5cb7e6f802c5ea. diff --git a/contrib/libs/apache/arrow/cpp/src/arrow/vendored/utfcpp/README.md b/contrib/libs/apache/arrow/cpp/src/arrow/vendored/utfcpp/README.md index c0abfd7d11..bdb2db7d8d 100644 --- a/contrib/libs/apache/arrow/cpp/src/arrow/vendored/utfcpp/README.md +++ b/contrib/libs/apache/arrow/cpp/src/arrow/vendored/utfcpp/README.md @@ -1,28 +1,28 @@ -<!--- - Boost Software License - Version 1.0 - August 17th, 2003 - - Permission is hereby granted, free of charge, to any person or organization - obtaining a copy of the software and accompanying documentation covered by - this license (the "Software") to use, reproduce, display, distribute, - execute, and transmit the Software, and to prepare derivative works of the - Software, and to permit third-parties to whom the Software is furnished to - do so, all subject to the following: - - The copyright notices in the Software and this entire statement, including - the above license grant, this restriction and the following disclaimer, - must be included in all copies of the Software, in whole or in part, and - all derivative works of the Software, unless such copies or derivative - works are solely in the form of machine-executable object code generated by - a source language processor. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT - SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE - FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, - ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - DEALINGS IN THE SOFTWARE. ---> - -The files in this directory are vendored from utfcpp git tag v3.1.1 -(https://github.com/nemtrif/utfcpp). +<!--- + Boost Software License - Version 1.0 - August 17th, 2003 + + Permission is hereby granted, free of charge, to any person or organization + obtaining a copy of the software and accompanying documentation covered by + this license (the "Software") to use, reproduce, display, distribute, + execute, and transmit the Software, and to prepare derivative works of the + Software, and to permit third-parties to whom the Software is furnished to + do so, all subject to the following: + + The copyright notices in the Software and this entire statement, including + the above license grant, this restriction and the following disclaimer, + must be included in all copies of the Software, in whole or in part, and + all derivative works of the Software, unless such copies or derivative + works are solely in the form of machine-executable object code generated by + a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT + SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE + FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. +--> + +The files in this directory are vendored from utfcpp git tag v3.1.1 +(https://github.com/nemtrif/utfcpp). diff --git a/contrib/libs/apache/arrow/ya.make b/contrib/libs/apache/arrow/ya.make index 27b9235d9e..8ceac746b8 100644 --- a/contrib/libs/apache/arrow/ya.make +++ b/contrib/libs/apache/arrow/ya.make @@ -10,7 +10,7 @@ OWNER( VERSION(5.0.0) ORIGINAL_SOURCE(https://github.com/apache/arrow/archive/apache-arrow-5.0.0.tar.gz) - + LICENSE( Apache-2.0 AND BSD-2-Clause AND @@ -24,7 +24,7 @@ LICENSE( ZPL-2.1 AND Zlib ) - + LICENSE_TEXTS(.yandex_meta/licenses.list.txt) PEERDIR( diff --git a/contrib/libs/apache/orc/.yandex_meta/devtools.copyrights.report b/contrib/libs/apache/orc/.yandex_meta/devtools.copyrights.report index 093facd788..b418699575 100644 --- a/contrib/libs/apache/orc/.yandex_meta/devtools.copyrights.report +++ b/contrib/libs/apache/orc/.yandex_meta/devtools.copyrights.report @@ -29,62 +29,62 @@ # FILE_INCLUDE - include all file data into licenses text file # ======================= -KEEP COPYRIGHT_SERVICE_LABEL 44bf37d4806e634327301adb6333234f +KEEP COPYRIGHT_SERVICE_LABEL 44bf37d4806e634327301adb6333234f BELONGS ya.make License text: - * Copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos + * Copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos Scancode info: Original SPDX id: COPYRIGHT_SERVICE_LABEL Score : 100.00 Match type : COPYRIGHT Files with this license: - LICENSE [338:338] + LICENSE [338:338] -KEEP COPYRIGHT_SERVICE_LABEL 522505e5894778a882702849ee07b13a +KEEP COPYRIGHT_SERVICE_LABEL 522505e5894778a882702849ee07b13a BELONGS ya.make License text: - Copyright 2011, Google Inc. - All rights reserved. + Copyright 2011, Google Inc. + All rights reserved. Scancode info: Original SPDX id: COPYRIGHT_SERVICE_LABEL Score : 100.00 Match type : COPYRIGHT Files with this license: - LICENSE [274:275] - -KEEP COPYRIGHT_SERVICE_LABEL 7993ed112cd32a97cc601b58343dfe3b -BELONGS ya.make - License text: - (C) 1995-2017 Jean-loup Gailly and Mark Adler - Scancode info: - Original SPDX id: COPYRIGHT_SERVICE_LABEL - Score : 100.00 - Match type : COPYRIGHT - Files with this license: - LICENSE [305:305] - -KEEP COPYRIGHT_SERVICE_LABEL 7ddb2995f48012001146c0eb94d23367 -BELONGS ya.make - License text: - Copyright 2008 Google Inc. All rights reserved. - Scancode info: - Original SPDX id: COPYRIGHT_SERVICE_LABEL - Score : 100.00 - Match type : COPYRIGHT - Files with this license: - LICENSE [214:214] - -KEEP COPYRIGHT_SERVICE_LABEL b5f926d3cac689f08ee106a28ae32f34 -BELONGS ya.make - License text: - (c) Copyright [2008-2015] Tom Preston-Werner - Scancode info: - Original SPDX id: COPYRIGHT_SERVICE_LABEL - Score : 100.00 - Match type : COPYRIGHT - Files with this license: - LICENSE [252:252] + LICENSE [274:275] +KEEP COPYRIGHT_SERVICE_LABEL 7993ed112cd32a97cc601b58343dfe3b +BELONGS ya.make + License text: + (C) 1995-2017 Jean-loup Gailly and Mark Adler + Scancode info: + Original SPDX id: COPYRIGHT_SERVICE_LABEL + Score : 100.00 + Match type : COPYRIGHT + Files with this license: + LICENSE [305:305] + +KEEP COPYRIGHT_SERVICE_LABEL 7ddb2995f48012001146c0eb94d23367 +BELONGS ya.make + License text: + Copyright 2008 Google Inc. All rights reserved. + Scancode info: + Original SPDX id: COPYRIGHT_SERVICE_LABEL + Score : 100.00 + Match type : COPYRIGHT + Files with this license: + LICENSE [214:214] + +KEEP COPYRIGHT_SERVICE_LABEL b5f926d3cac689f08ee106a28ae32f34 +BELONGS ya.make + License text: + (c) Copyright [2008-2015] Tom Preston-Werner + Scancode info: + Original SPDX id: COPYRIGHT_SERVICE_LABEL + Score : 100.00 + Match type : COPYRIGHT + Files with this license: + LICENSE [252:252] + KEEP COPYRIGHT_SERVICE_LABEL d73f33a516f5e4a9b5ce47f967383cfb BELONGS ya.make License text: @@ -96,14 +96,14 @@ BELONGS ya.make Match type : COPYRIGHT Files with this license: NOTICE [7:8] - -KEEP COPYRIGHT_SERVICE_LABEL db14b49950a466d8c06ad0d9e2101bcf -BELONGS ya.make - License text: - Copyright 2013 and onwards The Apache Software Foundation. - Scancode info: - Original SPDX id: COPYRIGHT_SERVICE_LABEL - Score : 100.00 - Match type : COPYRIGHT - Files with this license: - NOTICE [2:2] + +KEEP COPYRIGHT_SERVICE_LABEL db14b49950a466d8c06ad0d9e2101bcf +BELONGS ya.make + License text: + Copyright 2013 and onwards The Apache Software Foundation. + Scancode info: + Original SPDX id: COPYRIGHT_SERVICE_LABEL + Score : 100.00 + Match type : COPYRIGHT + Files with this license: + NOTICE [2:2] diff --git a/contrib/libs/apache/orc/.yandex_meta/devtools.licenses.report b/contrib/libs/apache/orc/.yandex_meta/devtools.licenses.report index f9ce15cbd1..c26234e647 100644 --- a/contrib/libs/apache/orc/.yandex_meta/devtools.licenses.report +++ b/contrib/libs/apache/orc/.yandex_meta/devtools.licenses.report @@ -122,18 +122,18 @@ BELONGS ya.make Files with this license: NOTICE [4:5] -SKIP BSD-3-Clause 65f1885a6e62550129cec1b1c92228b7 -BELONGS ya.make -# for snappy - Note: matched license text is too long. Read it in the source files. - Scancode info: - Original SPDX id: BSD-3-Clause - Score : 100.00 - Match type : TEXT - Links : http://www.opensource.org/licenses/BSD-3-Clause, https://spdx.org/licenses/BSD-3-Clause - Files with this license: - LICENSE [277:301] - +SKIP BSD-3-Clause 65f1885a6e62550129cec1b1c92228b7 +BELONGS ya.make +# for snappy + Note: matched license text is too long. Read it in the source files. + Scancode info: + Original SPDX id: BSD-3-Clause + Score : 100.00 + Match type : TEXT + Links : http://www.opensource.org/licenses/BSD-3-Clause, https://spdx.org/licenses/BSD-3-Clause + Files with this license: + LICENSE [277:301] + SKIP LicenseRef-scancode-unknown-license-reference 82b9c91a8f717463c6871d82aa2b1ff8 BELONGS ya.make # notice about sub-components that have other licenses @@ -162,30 +162,30 @@ FILE_INCLUDE NOTICE found in files: c++/src/RLEV2Util.cc at line 3, c++/src/RleE c++/src/RLEV2Util.cc [2:16] c++/src/RleEncoderV2.cc [2:16] -SKIP MIT 8e611cb87fefb343bbd1b4b132671868 -BELONGS ya.make -# for the site - Note: matched license text is too long. Read it in the source files. - Scancode info: - Original SPDX id: MIT - Score : 100.00 - Match type : TEXT - Links : http://opensource.org/licenses/mit-license.php, https://spdx.org/licenses/MIT - Files with this license: - LICENSE [254:270] - -SKIP Zlib aa58f308323ed48be51ebc4b5d89fdbf -BELONGS ya.make -# for zlib - Note: matched license text is too long. Read it in the source files. - Scancode info: - Original SPDX id: Zlib - Score : 100.00 - Match type : TEXT - Links : http://www.gzip.org/zlib/zlib_license.html, http://www.zlib.net/, https://spdx.org/licenses/Zlib - Files with this license: - LICENSE [307:324] - +SKIP MIT 8e611cb87fefb343bbd1b4b132671868 +BELONGS ya.make +# for the site + Note: matched license text is too long. Read it in the source files. + Scancode info: + Original SPDX id: MIT + Score : 100.00 + Match type : TEXT + Links : http://opensource.org/licenses/mit-license.php, https://spdx.org/licenses/MIT + Files with this license: + LICENSE [254:270] + +SKIP Zlib aa58f308323ed48be51ebc4b5d89fdbf +BELONGS ya.make +# for zlib + Note: matched license text is too long. Read it in the source files. + Scancode info: + Original SPDX id: Zlib + Score : 100.00 + Match type : TEXT + Links : http://www.gzip.org/zlib/zlib_license.html, http://www.zlib.net/, https://spdx.org/licenses/Zlib + Files with this license: + LICENSE [307:324] + KEEP Apache-2.0 be1ae92e2816e00bcf72d9b9a768ac9d BELONGS ya.make FILE_INCLUDE NOTICE found in files: LICENSE at line 107, LICENSE at line 110, LICENSE at line 112, LICENSE at line 117, LICENSE at line 120, LICENSE at line 142 @@ -198,18 +198,18 @@ FILE_INCLUDE NOTICE found in files: LICENSE at line 107, LICENSE at line 110, LI Files with this license: LICENSE [2:202] -SKIP Protobuf-License c6508a22f2888f82ca0962122f6bf026 -BELONGS ya.make -# for protobuf - Note: matched license text is too long. Read it in the source files. - Scancode info: - Original SPDX id: LicenseRef-scancode-protobuf - Score : 100.00 - Match type : TEXT - Links : http://protobuf.googlecode.com/svn/trunk/COPYING.txt, https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/protobuf.LICENSE - Files with this license: - LICENSE [216:245] - +SKIP Protobuf-License c6508a22f2888f82ca0962122f6bf026 +BELONGS ya.make +# for protobuf + Note: matched license text is too long. Read it in the source files. + Scancode info: + Original SPDX id: LicenseRef-scancode-protobuf + Score : 100.00 + Match type : TEXT + Links : http://protobuf.googlecode.com/svn/trunk/COPYING.txt, https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/protobuf.LICENSE + Files with this license: + LICENSE [216:245] + KEEP Apache-2.0 cf6155521a56fa3ce6c29b457f7a2535 BELONGS ya.make FILE_INCLUDE NOTICE found in files: c++/src/Adaptor.cc at line 3, c++/src/RLE.cc at line 3, c++/src/RLEV2Util.hh at line 3, c++/src/RLEv1.hh at line 3, c++/src/RLEv2.hh at line 3 @@ -225,28 +225,28 @@ FILE_INCLUDE NOTICE found in files: c++/src/Adaptor.cc at line 3, c++/src/RLE.cc c++/src/RLEV2Util.hh [2:16] c++/src/RLEv1.hh [2:16] c++/src/RLEv2.hh [2:16] - -SKIP LicenseRef-scancode-bsd-3-clause-devine d62bead38797bd9e07e7e2167662d6b2 -BELONGS ya.make -# for orc.threeten - Note: matched license text is too long. Read it in the source files. - Scancode info: - Original SPDX id: LicenseRef-scancode-bsd-3-clause-devine - Score : 27.57 - Match type : TEXT - Links : https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/bsd-3-clause-devine.LICENSE - Files with this license: - LICENSE [361:366] - -SKIP MIT ef6e2d996c0ee4ccd03144f93e445032 -BELONGS ya.make -# for the site - License text: - that are licensed under the MIT License (MIT): - Scancode info: - Original SPDX id: MIT - Score : 100.00 - Match type : NOTICE - Links : http://opensource.org/licenses/mit-license.php, https://spdx.org/licenses/MIT - Files with this license: - LICENSE [250:250] + +SKIP LicenseRef-scancode-bsd-3-clause-devine d62bead38797bd9e07e7e2167662d6b2 +BELONGS ya.make +# for orc.threeten + Note: matched license text is too long. Read it in the source files. + Scancode info: + Original SPDX id: LicenseRef-scancode-bsd-3-clause-devine + Score : 27.57 + Match type : TEXT + Links : https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/bsd-3-clause-devine.LICENSE + Files with this license: + LICENSE [361:366] + +SKIP MIT ef6e2d996c0ee4ccd03144f93e445032 +BELONGS ya.make +# for the site + License text: + that are licensed under the MIT License (MIT): + Scancode info: + Original SPDX id: MIT + Score : 100.00 + Match type : NOTICE + Links : http://opensource.org/licenses/mit-license.php, https://spdx.org/licenses/MIT + Files with this license: + LICENSE [250:250] diff --git a/contrib/libs/apache/orc/.yandex_meta/licenses.list.txt b/contrib/libs/apache/orc/.yandex_meta/licenses.list.txt index 839a5ab922..b3bc283bf9 100644 --- a/contrib/libs/apache/orc/.yandex_meta/licenses.list.txt +++ b/contrib/libs/apache/orc/.yandex_meta/licenses.list.txt @@ -276,38 +276,38 @@ Foundation (http://www.apache.org/). ====================COPYRIGHT==================== - * Copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos + * Copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos ====================COPYRIGHT==================== - (C) 1995-2017 Jean-loup Gailly and Mark Adler - - -====================COPYRIGHT==================== - (c) Copyright [2008-2015] Tom Preston-Werner - - -====================COPYRIGHT==================== - Copyright 2008 Google Inc. All rights reserved. - - -====================COPYRIGHT==================== - Copyright 2011, Google Inc. - All rights reserved. - - -====================COPYRIGHT==================== -Copyright 2013 and onwards The Apache Software Foundation. + (C) 1995-2017 Jean-loup Gailly and Mark Adler ====================COPYRIGHT==================== + (c) Copyright [2008-2015] Tom Preston-Werner + + +====================COPYRIGHT==================== + Copyright 2008 Google Inc. All rights reserved. + + +====================COPYRIGHT==================== + Copyright 2011, Google Inc. + All rights reserved. + + +====================COPYRIGHT==================== +Copyright 2013 and onwards The Apache Software Foundation. + + +====================COPYRIGHT==================== This product includes software developed by Hewlett-Packard: (c) Copyright [2014-2015] Hewlett-Packard Development Company, L.P ====================File: NOTICE==================== Apache ORC -Copyright 2013 and onwards The Apache Software Foundation. +Copyright 2013 and onwards The Apache Software Foundation. This product includes software developed by The Apache Software Foundation (http://www.apache.org/). diff --git a/contrib/libs/apache/orc/LICENSE b/contrib/libs/apache/orc/LICENSE index 70507878ee..c3faac768d 100644 --- a/contrib/libs/apache/orc/LICENSE +++ b/contrib/libs/apache/orc/LICENSE @@ -209,159 +209,159 @@ notices and license terms. Your use of the source code for the these subcomponents is subject to the terms and conditions of the following licenses. -For protobuf: - - Copyright 2008 Google Inc. All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following disclaimer - in the documentation and/or other materials provided with the - distribution. - * Neither the name of Google Inc. nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - Code generated by the Protocol Buffer compiler is owned by the owner - of the input file used when generating it. This code is not - standalone and requires a support library to be linked with it. This - support library is itself covered by the above license. - -For the site: - - Parts of the site formatting includes software developed by Tom Preston-Werner - that are licensed under the MIT License (MIT): - - (c) Copyright [2008-2015] Tom Preston-Werner - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - -For snappy: - - Copyright 2011, Google Inc. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following disclaimer - in the documentation and/or other materials provided with the - distribution. - * Neither the name of Google Inc. nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -For zlib: - - (C) 1995-2017 Jean-loup Gailly and Mark Adler - - This software is provided 'as-is', without any express or implied - warranty. In no event will the authors be held liable for any damages - arising from the use of this software. - - Permission is granted to anyone to use this software for any purpose, - including commercial applications, and to alter it and redistribute it - freely, subject to the following restrictions: - - 1. The origin of this software must not be misrepresented; you must not - claim that you wrote the original software. If you use this software - in a product, an acknowledgment in the product documentation would be - appreciated but is not required. - 2. Altered source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - 3. This notice may not be removed or altered from any source distribution. - - Jean-loup Gailly Mark Adler - jloup@gzip.org madler@alumni.caltech.edu - - If you use the zlib library in a product, we would appreciate *not* receiving - lengthy legal documents to sign. The sources are provided for free but without - warranty of any kind. The library has been entirely written by Jean-loup - Gailly and Mark Adler; it does not include third-party code. - - If you redistribute modified sources, we would appreciate that you include in - the file ChangeLog history information documenting your changes. Please read - the FAQ for more information on the distribution of modified source versions. - -For orc.threeten: - - /* - * Copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos - * - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * * Neither the name of JSR-310 nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */
\ No newline at end of file +For protobuf: + + Copyright 2008 Google Inc. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following disclaimer + in the documentation and/or other materials provided with the + distribution. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + Code generated by the Protocol Buffer compiler is owned by the owner + of the input file used when generating it. This code is not + standalone and requires a support library to be linked with it. This + support library is itself covered by the above license. + +For the site: + + Parts of the site formatting includes software developed by Tom Preston-Werner + that are licensed under the MIT License (MIT): + + (c) Copyright [2008-2015] Tom Preston-Werner + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +For snappy: + + Copyright 2011, Google Inc. + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following disclaimer + in the documentation and/or other materials provided with the + distribution. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +For zlib: + + (C) 1995-2017 Jean-loup Gailly and Mark Adler + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + Jean-loup Gailly Mark Adler + jloup@gzip.org madler@alumni.caltech.edu + + If you use the zlib library in a product, we would appreciate *not* receiving + lengthy legal documents to sign. The sources are provided for free but without + warranty of any kind. The library has been entirely written by Jean-loup + Gailly and Mark Adler; it does not include third-party code. + + If you redistribute modified sources, we would appreciate that you include in + the file ChangeLog history information documenting your changes. Please read + the FAQ for more information on the distribution of modified source versions. + +For orc.threeten: + + /* + * Copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * * Neither the name of JSR-310 nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */
\ No newline at end of file diff --git a/contrib/libs/apache/orc/NOTICE b/contrib/libs/apache/orc/NOTICE index 4c79570fac..07c64d5dcb 100644 --- a/contrib/libs/apache/orc/NOTICE +++ b/contrib/libs/apache/orc/NOTICE @@ -1,5 +1,5 @@ Apache ORC -Copyright 2013 and onwards The Apache Software Foundation. +Copyright 2013 and onwards The Apache Software Foundation. This product includes software developed by The Apache Software Foundation (http://www.apache.org/). diff --git a/contrib/libs/apache/orc/README.md b/contrib/libs/apache/orc/README.md index 0668ee07a5..863fb036f1 100644 --- a/contrib/libs/apache/orc/README.md +++ b/contrib/libs/apache/orc/README.md @@ -33,18 +33,18 @@ Bug tracking: <a href="http://orc.apache.org/bugs">Apache Jira</a> The subdirectories are: * c++ - the c++ reader and writer -* cmake_modules - the cmake modules +* cmake_modules - the cmake modules * docker - docker scripts to build and test on various linuxes * examples - various ORC example files that are used to test compatibility * java - the java reader and writer * proto - the protocol buffer definition for the ORC metadata * site - the website and documentation -* snap - the script to build [snaps](https://snapcraft.io/) of the ORC tools +* snap - the script to build [snaps](https://snapcraft.io/) of the ORC tools * tools - the c++ tools for reading and inspecting ORC files ### Building -* Install java 1.8 or higher +* Install java 1.8 or higher * Install maven 3 or higher * Install cmake @@ -81,7 +81,7 @@ To build a release version without debug information: To build only the Java library: ```shell % cd java -% ./mvnw package +% ./mvnw package ``` diff --git a/contrib/libs/apache/orc/c++/include/orc/Common.hh b/contrib/libs/apache/orc/c++/include/orc/Common.hh index 4aa4a85118..41bb76b80a 100644 --- a/contrib/libs/apache/orc/c++/include/orc/Common.hh +++ b/contrib/libs/apache/orc/c++/include/orc/Common.hh @@ -69,13 +69,13 @@ namespace orc { ORC_JAVA_WRITER = 0, ORC_CPP_WRITER = 1, PRESTO_WRITER = 2, - SCRITCHLEY_GO = 3, - TRINO_WRITER = 4, + SCRITCHLEY_GO = 3, + TRINO_WRITER = 4, UNKNOWN_WRITER = INT32_MAX }; - std::string writerIdToString(uint32_t id); - + std::string writerIdToString(uint32_t id); + enum CompressionKind { CompressionKind_NONE = 0, CompressionKind_ZLIB = 1, @@ -99,9 +99,9 @@ namespace orc { WriterVersion_HIVE_13083 = 4, WriterVersion_ORC_101 = 5, WriterVersion_ORC_135 = 6, - WriterVersion_ORC_517 = 7, - WriterVersion_ORC_203 = 8, - WriterVersion_ORC_14 = 9, + WriterVersion_ORC_517 = 7, + WriterVersion_ORC_203 = 8, + WriterVersion_ORC_14 = 9, WriterVersion_MAX = INT32_MAX }; diff --git a/contrib/libs/apache/orc/c++/include/orc/Reader.hh b/contrib/libs/apache/orc/c++/include/orc/Reader.hh index 5d9a532c11..8984939a50 100644 --- a/contrib/libs/apache/orc/c++/include/orc/Reader.hh +++ b/contrib/libs/apache/orc/c++/include/orc/Reader.hh @@ -272,12 +272,12 @@ namespace orc { virtual uint64_t getNumberOfRows() const = 0; /** - * Get the software instance and version that wrote this file. - * @return a user-facing string that specifies the software version - */ - virtual std::string getSoftwareVersion() const = 0; - - /** + * Get the software instance and version that wrote this file. + * @return a user-facing string that specifies the software version + */ + virtual std::string getSoftwareVersion() const = 0; + + /** * Get the user metadata keys. * @return the set of user metadata keys */ diff --git a/contrib/libs/apache/orc/c++/include/orc/Statistics.hh b/contrib/libs/apache/orc/c++/include/orc/Statistics.hh index 1d4b0b6558..a77f7ca898 100644 --- a/contrib/libs/apache/orc/c++/include/orc/Statistics.hh +++ b/contrib/libs/apache/orc/c++/include/orc/Statistics.hh @@ -282,13 +282,13 @@ namespace orc { * Get the minimum value for the column. * @return minimum value */ - virtual const std::string & getMinimum() const = 0; + virtual const std::string & getMinimum() const = 0; /** * Get the maximum value for the column. * @return maximum value */ - virtual const std::string & getMaximum() const = 0; + virtual const std::string & getMaximum() const = 0; /** * Get the total length of all values. diff --git a/contrib/libs/apache/orc/c++/include/orc/orc-config.hh b/contrib/libs/apache/orc/c++/include/orc/orc-config.hh index 18bbbd78e1..f2e526f8b2 100644 --- a/contrib/libs/apache/orc/c++/include/orc/orc-config.hh +++ b/contrib/libs/apache/orc/c++/include/orc/orc-config.hh @@ -15,7 +15,7 @@ #ifndef ORC_CONFIG_HH #define ORC_CONFIG_HH -#define ORC_VERSION "1.6.12" +#define ORC_VERSION "1.6.12" #define ORC_CXX_HAS_CSTDINT #define ORC_CXX_HAS_INITIALIZER_LIST diff --git a/contrib/libs/apache/orc/c++/src/Adaptor.hh b/contrib/libs/apache/orc/c++/src/Adaptor.hh index a91b9c894d..9a8138796b 100644 --- a/contrib/libs/apache/orc/c++/src/Adaptor.hh +++ b/contrib/libs/apache/orc/c++/src/Adaptor.hh @@ -30,12 +30,12 @@ #define HAS_DOUBLE_TO_STRING #define HAS_INT64_TO_STRING #define HAS_PRE_1970 -#define HAS_POST_2038 +#define HAS_POST_2038 #define HAS_STD_ISNAN #define HAS_STD_MUTEX -#ifndef _MSC_VER -#define HAS_BUILTIN_OVERFLOW_CHECK -#endif +#ifndef _MSC_VER +#define HAS_BUILTIN_OVERFLOW_CHECK +#endif /* #undef NEEDS_REDUNDANT_MOVE */ /* #undef NEEDS_Z_PREFIX */ @@ -170,40 +170,40 @@ namespace orc { std::string to_string(int64_t val); } -#ifdef HAS_BUILTIN_OVERFLOW_CHECK - #define multiplyExact !__builtin_mul_overflow - #define addExact !__builtin_add_overflow -#else -namespace orc { - /** - * Compute value * repetitions, return false if overflow, return true otherwise - * and save the result at the address pointed to by result - * imitates the jdk Math.multiplyExact implementation - * but this method makes the assumption that repetitions > 1 - */ - static bool multiplyExact(int64_t value, int64_t repetitions, int64_t* result) { - int64_t r = value * repetitions; - if (((value < 0 ? -value : value) | repetitions) >> 31 != 0 && r / repetitions != value) { - return false; - } - *result = r; - return true; - } - - /** - * imitates the jdk Math.addExact implementation - */ - static bool addExact(int64_t sum, int64_t increment, int64_t* result) { - int64_t r = sum + increment; - if (((sum ^ r) & (increment ^ r)) < 0) { - return false; - } - *result = r; - return true; - } -} -#endif - +#ifdef HAS_BUILTIN_OVERFLOW_CHECK + #define multiplyExact !__builtin_mul_overflow + #define addExact !__builtin_add_overflow +#else +namespace orc { + /** + * Compute value * repetitions, return false if overflow, return true otherwise + * and save the result at the address pointed to by result + * imitates the jdk Math.multiplyExact implementation + * but this method makes the assumption that repetitions > 1 + */ + static bool multiplyExact(int64_t value, int64_t repetitions, int64_t* result) { + int64_t r = value * repetitions; + if (((value < 0 ? -value : value) | repetitions) >> 31 != 0 && r / repetitions != value) { + return false; + } + *result = r; + return true; + } + + /** + * imitates the jdk Math.addExact implementation + */ + static bool addExact(int64_t sum, int64_t increment, int64_t* result) { + int64_t r = sum + increment; + if (((sum ^ r) & (increment ^ r)) < 0) { + return false; + } + *result = r; + return true; + } +} +#endif + #ifndef HAS_CONSTEXPR #define constexpr const #endif diff --git a/contrib/libs/apache/orc/c++/src/BloomFilter.cc b/contrib/libs/apache/orc/c++/src/BloomFilter.cc index 8a1f1880e7..42eded0065 100644 --- a/contrib/libs/apache/orc/c++/src/BloomFilter.cc +++ b/contrib/libs/apache/orc/c++/src/BloomFilter.cc @@ -135,20 +135,20 @@ namespace orc { void BloomFilterImpl::addBytes(const char * data, int64_t length) { uint64_t hash64 = getBytesHash(data, length); - addHash(static_cast<int64_t>(hash64)); + addHash(static_cast<int64_t>(hash64)); } void BloomFilterImpl::addLong(int64_t data) { - addHash(getLongHash(data)); + addHash(getLongHash(data)); } bool BloomFilterImpl::testBytes(const char * data, int64_t length) const { uint64_t hash64 = getBytesHash(data, length); - return testHash(static_cast<int64_t>(hash64)); + return testHash(static_cast<int64_t>(hash64)); } bool BloomFilterImpl::testLong(int64_t data) const { - return testHash(getLongHash(data)); + return testHash(getLongHash(data)); } uint64_t BloomFilterImpl::sizeInBytes() const { @@ -210,11 +210,11 @@ namespace orc { DIAGNOSTIC_POP - void BloomFilterImpl::addHash(int64_t hash64) { + void BloomFilterImpl::addHash(int64_t hash64) { int32_t hash1 = static_cast<int32_t>(hash64 & 0xffffffff); - // In Java codes, we use "hash64 >>> 32" which is an unsigned shift op. - // So we cast hash64 to uint64_t here for an unsigned right shift. - int32_t hash2 = static_cast<int32_t>(static_cast<uint64_t>(hash64) >> 32); + // In Java codes, we use "hash64 >>> 32" which is an unsigned shift op. + // So we cast hash64 to uint64_t here for an unsigned right shift. + int32_t hash2 = static_cast<int32_t>(static_cast<uint64_t>(hash64) >> 32); for (int32_t i = 1; i <= mNumHashFunctions; ++i) { int32_t combinedHash = hash1 + i * hash2; @@ -227,11 +227,11 @@ namespace orc { } } - bool BloomFilterImpl::testHash(int64_t hash64) const{ + bool BloomFilterImpl::testHash(int64_t hash64) const{ int32_t hash1 = static_cast<int32_t>(hash64 & 0xffffffff); - // In Java codes, we use "hash64 >>> 32" which is an unsigned shift op. - // So we cast hash64 to uint64_t here for an unsigned right shift. - int32_t hash2 = static_cast<int32_t>(static_cast<uint64_t>(hash64) >> 32); + // In Java codes, we use "hash64 >>> 32" which is an unsigned shift op. + // So we cast hash64 to uint64_t here for an unsigned right shift. + int32_t hash2 = static_cast<int32_t>(static_cast<uint64_t>(hash64) >> 32); for (int32_t i = 1; i <= mNumHashFunctions; ++i) { int32_t combinedHash = hash1 + i * hash2; diff --git a/contrib/libs/apache/orc/c++/src/BloomFilter.hh b/contrib/libs/apache/orc/c++/src/BloomFilter.hh index cf18a46fd9..e98fbd75cf 100644 --- a/contrib/libs/apache/orc/c++/src/BloomFilter.hh +++ b/contrib/libs/apache/orc/c++/src/BloomFilter.hh @@ -162,13 +162,13 @@ namespace orc { private: friend struct BloomFilterUTF8Utils; - friend class TestBloomFilter_testBloomFilterBasicOperations_Test; + friend class TestBloomFilter_testBloomFilterBasicOperations_Test; // compute k hash values from hash64 and set bits - void addHash(int64_t hash64); + void addHash(int64_t hash64); // compute k hash values from hash64 and check bits - bool testHash(int64_t hash64) const; + bool testHash(int64_t hash64) const; void serialize(proto::BloomFilter& bloomFilter) const; @@ -192,19 +192,19 @@ namespace orc { const proto::BloomFilter& bloomFilter); }; - // Thomas Wang's integer hash function - // http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm - // Put this in header file so tests can use it as well. - inline int64_t getLongHash(int64_t key) { - key = (~key) + (key << 21); // key = (key << 21) - key - 1; - key = key ^ (key >> 24); - key = (key + (key << 3)) + (key << 8); // key * 265 - key = key ^ (key >> 14); - key = (key + (key << 2)) + (key << 4); // key * 21 - key = key ^ (key >> 28); - key = key + (key << 31); - return key; - } + // Thomas Wang's integer hash function + // http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm + // Put this in header file so tests can use it as well. + inline int64_t getLongHash(int64_t key) { + key = (~key) + (key << 21); // key = (key << 21) - key - 1; + key = key ^ (key >> 24); + key = (key + (key << 3)) + (key << 8); // key * 265 + key = key ^ (key >> 14); + key = (key + (key << 2)) + (key << 4); // key * 21 + key = key ^ (key >> 28); + key = key + (key << 31); + return key; + } } #endif //ORC_BLOOMFILTER_IMPL_HH diff --git a/contrib/libs/apache/orc/c++/src/ColumnReader.cc b/contrib/libs/apache/orc/c++/src/ColumnReader.cc index 8cf660be11..113484fafd 100644 --- a/contrib/libs/apache/orc/c++/src/ColumnReader.cc +++ b/contrib/libs/apache/orc/c++/src/ColumnReader.cc @@ -374,7 +374,7 @@ namespace orc { } int64_t writerTime = secsBuffer[i] + epochOffset; secsBuffer[i] = writerTimezone.convertToUTC(writerTime); - if (secsBuffer[i] < 0 && nanoBuffer[i] > 999999) { + if (secsBuffer[i] < 0 && nanoBuffer[i] > 999999) { secsBuffer[i] -= 1; } } diff --git a/contrib/libs/apache/orc/c++/src/ColumnWriter.cc b/contrib/libs/apache/orc/c++/src/ColumnWriter.cc index 1408a15457..958e07c23c 100644 --- a/contrib/libs/apache/orc/c++/src/ColumnWriter.cc +++ b/contrib/libs/apache/orc/c++/src/ColumnWriter.cc @@ -1811,7 +1811,7 @@ namespace orc { } tsStats->update(millsUTC); - if (secs[i] < 0 && nanos[i] > 999999) { + if (secs[i] < 0 && nanos[i] > 999999) { secs[i] += 1; } diff --git a/contrib/libs/apache/orc/c++/src/Common.cc b/contrib/libs/apache/orc/c++/src/Common.cc index dbf073797e..bda3ab1f14 100644 --- a/contrib/libs/apache/orc/c++/src/Common.cc +++ b/contrib/libs/apache/orc/c++/src/Common.cc @@ -58,38 +58,38 @@ namespace orc { return "ORC-101"; case WriterVersion_ORC_135: return "ORC-135"; - case WriterVersion_ORC_517: - return "ORC-517"; - case WriterVersion_ORC_203: - return "ORC-203"; - case WriterVersion_ORC_14: - return "ORC-14"; + case WriterVersion_ORC_517: + return "ORC-517"; + case WriterVersion_ORC_203: + return "ORC-203"; + case WriterVersion_ORC_14: + return "ORC-14"; } std::stringstream buffer; buffer << "future - " << version; return buffer.str(); } - std::string writerIdToString(uint32_t id) { - switch (id) { - case ORC_JAVA_WRITER: - return "ORC Java"; - case ORC_CPP_WRITER: - return "ORC C++"; - case PRESTO_WRITER: - return "Presto"; - case SCRITCHLEY_GO: - return "Scritchley Go"; - case TRINO_WRITER: - return "Trino"; - default: { - std::ostringstream buffer; - buffer << "Unknown(" << id << ")"; - return buffer.str(); - } - } - } - + std::string writerIdToString(uint32_t id) { + switch (id) { + case ORC_JAVA_WRITER: + return "ORC Java"; + case ORC_CPP_WRITER: + return "ORC C++"; + case PRESTO_WRITER: + return "Presto"; + case SCRITCHLEY_GO: + return "Scritchley Go"; + case TRINO_WRITER: + return "Trino"; + default: { + std::ostringstream buffer; + buffer << "Unknown(" << id << ")"; + return buffer.str(); + } + } + } + std::string streamKindToString(StreamKind kind) { switch (static_cast<int>(kind)) { case StreamKind_PRESENT: diff --git a/contrib/libs/apache/orc/c++/src/Compression.cc b/contrib/libs/apache/orc/c++/src/Compression.cc index 4278ed7aae..6d96970a5a 100644 --- a/contrib/libs/apache/orc/c++/src/Compression.cc +++ b/contrib/libs/apache/orc/c++/src/Compression.cc @@ -292,7 +292,7 @@ DIAGNOSTIC_PUSH strm.zalloc = nullptr; strm.zfree = nullptr; strm.opaque = nullptr; - strm.next_in = nullptr; + strm.next_in = nullptr; if (deflateInit2(&strm, level, Z_DEFLATED, -15, 8, Z_DEFAULT_STRATEGY) != Z_OK) { @@ -1031,16 +1031,16 @@ DIAGNOSTIC_POP capacity, blockSize, pool) { - this->init(); + this->init(); } virtual std::string getName() const override { return "ZstdCompressionStream"; } - - virtual ~ZSTDCompressionStream() override { - this->end(); - } + + virtual ~ZSTDCompressionStream() override { + this->end(); + } protected: virtual uint64_t doBlockCompression() override; @@ -1048,44 +1048,44 @@ DIAGNOSTIC_POP virtual uint64_t estimateMaxCompressionSize() override { return ZSTD_compressBound(static_cast<size_t>(bufferSize)); } - - private: - void init(); - void end(); - ZSTD_CCtx *cctx; + + private: + void init(); + void end(); + ZSTD_CCtx *cctx; }; uint64_t ZSTDCompressionStream::doBlockCompression() { - return ZSTD_compressCCtx(cctx, - compressorBuffer.data(), - compressorBuffer.size(), - rawInputBuffer.data(), - static_cast<size_t>(bufferSize), - level); - } - -DIAGNOSTIC_PUSH - -#if defined(__GNUC__) || defined(__clang__) - DIAGNOSTIC_IGNORE("-Wold-style-cast") -#endif - - void ZSTDCompressionStream::init() { - - cctx = ZSTD_createCCtx(); - if (!cctx) { - throw std::runtime_error("Error while calling ZSTD_createCCtx() for zstd."); - } - } - - - void ZSTDCompressionStream::end() { - (void)ZSTD_freeCCtx(cctx); - cctx = nullptr; + return ZSTD_compressCCtx(cctx, + compressorBuffer.data(), + compressorBuffer.size(), + rawInputBuffer.data(), + static_cast<size_t>(bufferSize), + level); } - -DIAGNOSTIC_PUSH - + +DIAGNOSTIC_PUSH + +#if defined(__GNUC__) || defined(__clang__) + DIAGNOSTIC_IGNORE("-Wold-style-cast") +#endif + + void ZSTDCompressionStream::init() { + + cctx = ZSTD_createCCtx(); + if (!cctx) { + throw std::runtime_error("Error while calling ZSTD_createCCtx() for zstd."); + } + } + + + void ZSTDCompressionStream::end() { + (void)ZSTD_freeCCtx(cctx); + cctx = nullptr; + } + +DIAGNOSTIC_PUSH + /** * ZSTD block decompression */ @@ -1097,13 +1097,13 @@ DIAGNOSTIC_PUSH : BlockDecompressionStream(std::move(inStream), blockSize, pool) { - this->init(); - } - - virtual ~ZSTDDecompressionStream() override { - this->end(); + this->init(); } + virtual ~ZSTDDecompressionStream() override { + this->end(); + } + std::string getName() const override { std::ostringstream result; result << "zstd(" << getStreamName() << ")"; @@ -1115,46 +1115,46 @@ DIAGNOSTIC_PUSH uint64_t length, char *output, size_t maxOutputLength) override; - - private: - void init(); - void end(); - ZSTD_DCtx *dctx; + + private: + void init(); + void end(); + ZSTD_DCtx *dctx; }; uint64_t ZSTDDecompressionStream::decompress(const char *input, uint64_t length, char *output, size_t maxOutputLength) { - return static_cast<uint64_t>(ZSTD_decompressDCtx(dctx, - output, - maxOutputLength, - input, - length)); - } - -DIAGNOSTIC_PUSH - -#if defined(__GNUC__) || defined(__clang__) - DIAGNOSTIC_IGNORE("-Wold-style-cast") -#endif - - void ZSTDDecompressionStream::init() { - - dctx = ZSTD_createDCtx(); - if (!dctx) { - throw std::runtime_error("Error while calling ZSTD_createDCtx() for zstd."); - } + return static_cast<uint64_t>(ZSTD_decompressDCtx(dctx, + output, + maxOutputLength, + input, + length)); } - - void ZSTDDecompressionStream::end() { - (void)ZSTD_freeDCtx(dctx); - dctx = nullptr; - } - -DIAGNOSTIC_PUSH - +DIAGNOSTIC_PUSH + +#if defined(__GNUC__) || defined(__clang__) + DIAGNOSTIC_IGNORE("-Wold-style-cast") +#endif + + void ZSTDDecompressionStream::init() { + + dctx = ZSTD_createDCtx(); + if (!dctx) { + throw std::runtime_error("Error while calling ZSTD_createDCtx() for zstd."); + } + } + + + void ZSTDDecompressionStream::end() { + (void)ZSTD_freeDCtx(dctx); + dctx = nullptr; + } + +DIAGNOSTIC_PUSH + std::unique_ptr<BufferedOutputStream> createCompressor( CompressionKind kind, diff --git a/contrib/libs/apache/orc/c++/src/OrcFile.cc b/contrib/libs/apache/orc/c++/src/OrcFile.cc index a0158bbadf..1ec2c06036 100644 --- a/contrib/libs/apache/orc/c++/src/OrcFile.cc +++ b/contrib/libs/apache/orc/c++/src/OrcFile.cc @@ -30,8 +30,8 @@ #include <io.h> #define S_IRUSR _S_IREAD #define S_IWUSR _S_IWRITE -#define stat _stat64 -#define fstat _fstat64 +#define stat _stat64 +#define fstat _fstat64 #else #include <unistd.h> #define O_BINARY 0 diff --git a/contrib/libs/apache/orc/c++/src/Reader.cc b/contrib/libs/apache/orc/c++/src/Reader.cc index f35106ee44..fc559a6cc3 100644 --- a/contrib/libs/apache/orc/c++/src/Reader.cc +++ b/contrib/libs/apache/orc/c++/src/Reader.cc @@ -491,7 +491,7 @@ namespace orc { WriterId ReaderImpl::getWriterId() const { if (footer->has_writer()) { uint32_t id = footer->writer(); - if (id > WriterId::TRINO_WRITER) { + if (id > WriterId::TRINO_WRITER) { return WriterId::UNKNOWN_WRITER; } else { return static_cast<WriterId>(id); @@ -508,15 +508,15 @@ namespace orc { } } - std::string ReaderImpl::getSoftwareVersion() const { - std::ostringstream buffer; - buffer << writerIdToString(getWriterIdValue()); - if (footer->has_softwareversion()) { - buffer << " " << footer->softwareversion(); - } - return buffer.str(); - } - + std::string ReaderImpl::getSoftwareVersion() const { + std::ostringstream buffer; + buffer << writerIdToString(getWriterIdValue()); + if (footer->has_softwareversion()) { + buffer << " " << footer->softwareversion(); + } + return buffer.str(); + } + WriterVersion ReaderImpl::getWriterVersion() const { if (!contents->postscript->has_writerversion()) { return WriterVersion_ORIGINAL; diff --git a/contrib/libs/apache/orc/c++/src/Reader.hh b/contrib/libs/apache/orc/c++/src/Reader.hh index 49e9d033d9..29a1e7d9c7 100644 --- a/contrib/libs/apache/orc/c++/src/Reader.hh +++ b/contrib/libs/apache/orc/c++/src/Reader.hh @@ -124,7 +124,7 @@ namespace orc { proto::Footer* footer; DataBuffer<uint64_t> firstRowOfStripe; mutable std::unique_ptr<Type> selectedSchema; - bool skipBloomFilters; + bool skipBloomFilters; // reading state uint64_t previousRow; @@ -150,13 +150,13 @@ namespace orc { */ void seekToRowGroup(uint32_t rowGroupEntryId); - /** - * Check if the file has bad bloom filters. We will skip using them in the - * following reads. - * @return true if it has. - */ - bool hasBadBloomFilters(); - + /** + * Check if the file has bad bloom filters. We will skip using them in the + * following reads. + * @return true if it has. + */ + bool hasBadBloomFilters(); + public: /** * Constructor that lets the user specify additional options. @@ -238,8 +238,8 @@ namespace orc { uint32_t getWriterIdValue() const override; - std::string getSoftwareVersion() const override; - + std::string getSoftwareVersion() const override; + WriterVersion getWriterVersion() const override; uint64_t getNumberOfRows() const override; diff --git a/contrib/libs/apache/orc/c++/src/RleEncoderV2.cc b/contrib/libs/apache/orc/c++/src/RleEncoderV2.cc index 44e2761b74..63c2753427 100644 --- a/contrib/libs/apache/orc/c++/src/RleEncoderV2.cc +++ b/contrib/libs/apache/orc/c++/src/RleEncoderV2.cc @@ -123,7 +123,7 @@ void RleEncoderV2::write(int64_t val) { numLiterals = MIN_REPEAT; } - if (fixedRunLength == MAX_LITERAL_SIZE) { + if (fixedRunLength == MAX_LITERAL_SIZE) { determineEncoding(option); writeValues(option); } @@ -696,7 +696,7 @@ void RleEncoderV2::writeInts(int64_t* input, uint32_t offset, size_t len, uint32 if (getClosestAlignedFixedBits(bitSize) == bitSize) { uint32_t numBytes; uint32_t endOffSet = static_cast<uint32_t>(offset + len); - if (bitSize < 8 ) { + if (bitSize < 8 ) { char bitMask = static_cast<char>((1 << bitSize) - 1); uint32_t numHops = 8 / bitSize; uint32_t remainder = static_cast<uint32_t>(len % numHops); diff --git a/contrib/libs/apache/orc/c++/src/Statistics.hh b/contrib/libs/apache/orc/c++/src/Statistics.hh index ee9db23f86..7e1d92d502 100644 --- a/contrib/libs/apache/orc/c++/src/Statistics.hh +++ b/contrib/libs/apache/orc/c++/src/Statistics.hh @@ -94,7 +94,7 @@ namespace orc { // GET / SET _maximum bool hasMaximum() const { return _hasMaximum; } - const T & getMaximum() const { return _maximum; } + const T & getMaximum() const { return _maximum; } void setHasMaximum(bool hasMax) { _hasMaximum = hasMax; } @@ -105,7 +105,7 @@ namespace orc { void setHasMinimum(bool hasMin) { _hasMinimum = hasMin; } - const T & getMinimum() const { return _minimum; } + const T & getMinimum() const { return _minimum; } void setMinimum(T min) { _minimum = min; } @@ -963,24 +963,24 @@ namespace orc { _stats.setSum(sum); } - void update(int64_t value, int repetitions) { - _stats.updateMinMax(value); - - if (_stats.hasSum()) { - if (repetitions > 1) { - _stats.setHasSum(multiplyExact(value, repetitions, &value)); - } - - if (_stats.hasSum()) { - _stats.setHasSum(addExact(_stats.getSum(), value, &value)); - - if (_stats.hasSum()) { - _stats.setSum(value); - } - } - } - } - + void update(int64_t value, int repetitions) { + _stats.updateMinMax(value); + + if (_stats.hasSum()) { + if (repetitions > 1) { + _stats.setHasSum(multiplyExact(value, repetitions, &value)); + } + + if (_stats.hasSum()) { + _stats.setHasSum(addExact(_stats.getSum(), value, &value)); + + if (_stats.hasSum()) { + _stats.setSum(value); + } + } + } + } + void merge(const MutableColumnStatistics& other) override { const IntegerColumnStatisticsImpl& intStats = dynamic_cast<const IntegerColumnStatisticsImpl&>(other); @@ -990,10 +990,10 @@ namespace orc { // update sum and check overflow _stats.setHasSum(_stats.hasSum() && intStats.hasSum()); if (_stats.hasSum()) { - int64_t value; - _stats.setHasSum(addExact(_stats.getSum(), intStats.getSum(), &value)); - if (_stats.hasSum()) { - _stats.setSum(value); + int64_t value; + _stats.setHasSum(addExact(_stats.getSum(), intStats.getSum(), &value)); + if (_stats.hasSum()) { + _stats.setSum(value); } } } @@ -1093,7 +1093,7 @@ namespace orc { _stats.setHasNull(hasNull); } - const std::string & getMinimum() const override { + const std::string & getMinimum() const override { if(hasMinimum()){ return _stats.getMinimum(); }else{ @@ -1101,7 +1101,7 @@ namespace orc { } } - const std::string & getMaximum() const override { + const std::string & getMaximum() const override { if(hasMaximum()){ return _stats.getMaximum(); }else{ diff --git a/contrib/libs/apache/orc/c++/src/Writer.cc b/contrib/libs/apache/orc/c++/src/Writer.cc index b5bd19b304..688c09cf30 100644 --- a/contrib/libs/apache/orc/c++/src/Writer.cc +++ b/contrib/libs/apache/orc/c++/src/Writer.cc @@ -379,7 +379,7 @@ namespace orc { fileFooter.set_rowindexstride( static_cast<uint32_t>(options.getRowIndexStride())); fileFooter.set_writer(writerId); - fileFooter.set_softwareversion(ORC_VERSION); + fileFooter.set_softwareversion(ORC_VERSION); uint32_t index = 0; buildFooterType(type, fileFooter, index); diff --git a/contrib/libs/apache/orc/proto/orc_proto.proto b/contrib/libs/apache/orc/proto/orc_proto.proto index e8b84dbecd..4faff52f85 100644 --- a/contrib/libs/apache/orc/proto/orc_proto.proto +++ b/contrib/libs/apache/orc/proto/orc_proto.proto @@ -67,9 +67,9 @@ message TimestampStatistics { optional sint64 maximum = 2; optional sint64 minimumUtc = 3; optional sint64 maximumUtc = 4; - // store the lower 6 TS digits for min/max to achieve nanosecond precision - optional int32 minimumNanos = 5; - optional int32 maximumNanos = 6; + // store the lower 6 TS digits for min/max to achieve nanosecond precision + optional int32 minimumNanos = 5; + optional int32 maximumNanos = 6; } message BinaryStatistics { @@ -343,14 +343,14 @@ message Encryption { optional KeyProviderKind keyProvider = 4; } -enum CalendarKind { - UNKNOWN_CALENDAR = 0; - // A hybrid Julian/Gregorian calendar with a cutover point in October 1582. - JULIAN_GREGORIAN = 1; - // A calendar that extends the Gregorian calendar back forever. - PROLEPTIC_GREGORIAN = 2; -} - +enum CalendarKind { + UNKNOWN_CALENDAR = 0; + // A hybrid Julian/Gregorian calendar with a cutover point in October 1582. + JULIAN_GREGORIAN = 1; + // A calendar that extends the Gregorian calendar back forever. + PROLEPTIC_GREGORIAN = 2; +} + message Footer { optional uint64 headerLength = 1; optional uint64 contentLength = 2; @@ -370,12 +370,12 @@ message Footer { // information about the encryption in this file optional Encryption encryption = 10; - optional CalendarKind calendar = 11; - - // informative description about the version of the software that wrote - // the file. It is assumed to be within a given writer, so for example - // ORC 1.7.2 = "1.7.2". It may include suffixes, such as "-SNAPSHOT". - optional string softwareVersion = 12; + optional CalendarKind calendar = 11; + + // informative description about the version of the software that wrote + // the file. It is assumed to be within a given writer, so for example + // ORC 1.7.2 = "1.7.2". It may include suffixes, such as "-SNAPSHOT". + optional string softwareVersion = 12; } enum CompressionKind { @@ -428,9 +428,9 @@ message PostScript { // Version of the Scritchley Go writer: // 6 = original // - // Version of the Trino writer: - // 6 = original - // + // Version of the Trino writer: + // 6 = original + // optional uint32 writerVersion = 6; // the number of bytes in the encrypted stripe statistics diff --git a/contrib/libs/apache/orc/ya.make b/contrib/libs/apache/orc/ya.make index 5672ba95db..7c79b8b3d7 100644 --- a/contrib/libs/apache/orc/ya.make +++ b/contrib/libs/apache/orc/ya.make @@ -7,11 +7,11 @@ OWNER( g:cpp-contrib ) -VERSION(1.6.12) +VERSION(1.6.12) -ORIGINAL_SOURCE(https://github.com/apache/orc/archive/rel/release-1.6.12.tar.gz) - -LICENSE(Apache-2.0) +ORIGINAL_SOURCE(https://github.com/apache/orc/archive/rel/release-1.6.12.tar.gz) + +LICENSE(Apache-2.0) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) |