You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@madlib.apache.org by nk...@apache.org on 2021/01/11 23:26:14 UTC

[madlib] branch master updated: Changed the data type of the 'number of rows' column in the summary table of linear regression training from integer to BIGINT, in order to prevent an integer out of range exception in cae the total number of rows in the input table exceeds the range of a signed integer

This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new b099196  Changed the data type of the 'number of rows' column in the summary table of linear regression training from integer to BIGINT, in order to prevent an integer out of range exception in cae the total number of rows in the input table exceeds the range of a signed integer
b099196 is described below

commit b0991965f7d4007d47902afcf7b319a78d766613
Author: GH4562 <GH...@surf.com>
AuthorDate: Tue Oct 27 11:27:40 2020 +0200

    Changed the data type of the 'number of rows' column in the summary table of linear regression training from integer to BIGINT, in order to prevent an integer out of range exception in cae the total number of rows in the input table exceeds the range of a signed integer
---
 src/ports/postgres/modules/regress/linear.py_in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ports/postgres/modules/regress/linear.py_in b/src/ports/postgres/modules/regress/linear.py_in
index 2be78e9..364b380 100644
--- a/src/ports/postgres/modules/regress/linear.py_in
+++ b/src/ports/postgres/modules/regress/linear.py_in
@@ -180,7 +180,7 @@ def linregr_train(schema_madlib, source_table, out_table,
                     , '{out_table}'::varchar              as out_table
                     , $__madlib__${dependent_varname}$__madlib__$::varchar      as dependent_varname
                     , $__madlib__${independent_varname}$__madlib__$::varchar    as independent_varname
-                    , {num_rows_processed}::integer       as num_rows_processed
+                    , {num_rows_processed}::BIGINT       as num_rows_processed
                     , {num_rows_skipped}::integer         as num_missing_rows_skipped
                     , {grouping_col}::text                as grouping_col
             """.format(out_table=out_table, source_table=source_table,