You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@madlib.apache.org by GitBox <gi...@apache.org> on 2019/05/30 00:56:28 UTC
[GitHub] [madlib] jingyimei opened a new pull request #401: DL: fix
default_buffer_size calculation
jingyimei opened a new pull request #401: DL: fix default_buffer_size calculation
URL: https://github.com/apache/madlib/pull/401
JIRA: MADLIB-1340
In buffer size calculator, we assumed the array to be packed is one dimention, and use the array_upper(x, 1) to get the length
of the array. In DL input data preprocessor, we passed the first element
in array_ndims as the length, which is not right because the
array can be multi-dimentional. This caused
default_buffer_size_calculator returns a bigger buffer size than it
supposed to have and rows get too big and crashes database.
Instead, we should use
product of all the elements from array_ndims to represent the actual length of
the array. For example, if array_ndims returns [32,32,3], we should pass
32*32*3 instead of 32. This commit fixes this issue by passing the
right length to defualt buffer calculator.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services