[arrow] branch master updated (3564c87 -> a4ef8c6)

2019-08-17 Thread shiro
This is an automated email from the ASF dual-hosted git repository.

shiro pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git.


from 3564c87  ARROW-6270: [C++] check buffer_index bounds in 
IpcComponentSource.GetBuffer
 add a4ef8c6  ARROW-6267: [Ruby] Add Arrow::Time for 
Arrow::Time{32,64}DataType value

No new revisions were added by this update.

Summary of changes:
 ruby/red-arrow/ext/arrow/arrow.cpp |  21 ++
 ruby/red-arrow/ext/arrow/raw-records.cpp   |  21 +-
 ruby/red-arrow/ext/arrow/red-arrow.hpp |  29 ++-
 ruby/red-arrow/lib/arrow/array-builder.rb  |  25 +-
 ruby/red-arrow/lib/arrow/array.rb  |   5 +
 ruby/red-arrow/lib/arrow/csv-loader.rb |   4 +-
 ruby/red-arrow/lib/arrow/date64-array-builder.rb   |   4 +-
 ruby/red-arrow/lib/arrow/date64-array.rb   |   2 +-
 ruby/red-arrow/lib/arrow/loader.rb |   5 +
 ruby/red-arrow/lib/arrow/table-table-formatter.rb  |   4 +-
 ruby/red-arrow/lib/arrow/time.rb   | 159 
 ruby/red-arrow/lib/arrow/time32-array-builder.rb   |  10 +
 .../arrow/{decimal128-array.rb => time32-array.rb} |   8 +-
 ruby/red-arrow/lib/arrow/time64-array-builder.rb   |  10 +
 .../arrow/{decimal128-array.rb => time64-array.rb} |   8 +-
 .../red-arrow/lib/arrow/timestamp-array-builder.rb |   2 +-
 ruby/red-arrow/lib/arrow/timestamp-array.rb|  24 +-
 .../test/raw-records/test-basic-arrays.rb  |  24 +-
 .../test/raw-records/test-dense-union-array.rb |  15 +-
 ruby/red-arrow/test/raw-records/test-list-array.rb |  30 ++-
 .../test/raw-records/test-sparse-union-array.rb|  16 +-
 .../test/raw-records/test-struct-array.rb  |  15 +-
 ruby/red-arrow/test/test-time.rb   | 288 +
 ruby/red-arrow/test/test-time32-array.rb   |  79 --
 ruby/red-arrow/test/test-time64-array.rb   |  79 --
 25 files changed, 777 insertions(+), 110 deletions(-)
 create mode 100644 ruby/red-arrow/lib/arrow/time.rb
 copy ruby/red-arrow/lib/arrow/{decimal128-array.rb => time32-array.rb} (87%)
 copy ruby/red-arrow/lib/arrow/{decimal128-array.rb => time64-array.rb} (87%)
 create mode 100644 ruby/red-arrow/test/test-time.rb



[arrow] branch master updated: ARROW-6270: [C++] check buffer_index bounds in IpcComponentSource.GetBuffer

2019-08-17 Thread wesm
This is an automated email from the ASF dual-hosted git repository.

wesm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
 new 3564c87  ARROW-6270: [C++] check buffer_index bounds in 
IpcComponentSource.GetBuffer
3564c87 is described below

commit 3564c8713c8f63d87880921e55d8e18c602095e1
Author: Marco Neumann 
AuthorDate: Sat Aug 17 15:27:03 2019 -0500

ARROW-6270: [C++] check buffer_index bounds in IpcComponentSource.GetBuffer

Closes #5105 from crepererum/ARROW-6270 and squashes the following commits:

a298dc1d7  check buffer_index bounds in 
IpcComponentSource.GetBuffer

Authored-by: Marco Neumann 
Signed-off-by: Wes McKinney 
---
 cpp/src/arrow/ipc/reader.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cpp/src/arrow/ipc/reader.cc b/cpp/src/arrow/ipc/reader.cc
index 648bb89..7072769 100644
--- a/cpp/src/arrow/ipc/reader.cc
+++ b/cpp/src/arrow/ipc/reader.cc
@@ -104,6 +104,9 @@ class IpcComponentSource {
   return Status::IOError(
   "Buffers-pointer of flatbuffer-encoded RecordBatch is null.");
 }
+if (buffer_index >= static_cast(buffers->size())) {
+  return Status::IOError("buffer_index out of range.");
+}
 const flatbuf::Buffer* buffer = buffers->Get(buffer_index);
 
 if (buffer->length() == 0) {



[arrow] branch master updated (7cc6f78 -> abeb7a9)

2019-08-17 Thread wesm
This is an automated email from the ASF dual-hosted git repository.

wesm pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git.


from 7cc6f78  ARROW-5028: [Python] Avoid malformed ListArray types caused 
by reaching StringBuilder capacity when converting from Python sequence
 add abeb7a9  ARROW-5085: [C++][Parquet][Python] Do not allow reading to 
dictionary type unless we have implemented support for it

No new revisions were added by this update.

Summary of changes:
 cpp/src/parquet/arrow/reader_internal.cc | 11 +--
 python/pyarrow/tests/test_parquet.py | 18 ++
 2 files changed, 27 insertions(+), 2 deletions(-)



[arrow] branch master updated (2ba0566 -> 7cc6f78)

2019-08-17 Thread wesm
This is an automated email from the ASF dual-hosted git repository.

wesm pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git.


from 2ba0566  ARROW-3246: [C++][Python][Parquet] Direct writing of 
DictionaryArray to Parquet columns, automatic decoding to Arrow
 add 7cc6f78  ARROW-5028: [Python] Avoid malformed ListArray types caused 
by reaching StringBuilder capacity when converting from Python sequence

No new revisions were added by this update.

Summary of changes:
 cpp/src/arrow/python/python_to_arrow.cc | 33 ++---
 python/pyarrow/tests/test_array.py  |  7 +++
 2 files changed, 29 insertions(+), 11 deletions(-)