From 53af478e09c6d57a022851463a0ac5d12caf3b12 Mon Sep 17 00:00:00 2001 From: Sarah Gilmore Date: Tue, 31 Oct 2023 16:43:42 -0400 Subject: [PATCH] Update comments --- .../src/matlab/+arrow/+array/+internal/+list/TableValidator.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matlab/src/matlab/+arrow/+array/+internal/+list/TableValidator.m b/matlab/src/matlab/+arrow/+array/+internal/+list/TableValidator.m index 88b09496e865d..76a74df48267d 100644 --- a/matlab/src/matlab/+arrow/+array/+internal/+list/TableValidator.m +++ b/matlab/src/matlab/+arrow/+array/+internal/+list/TableValidator.m @@ -66,7 +66,9 @@ function validateElement(obj, element) for ii=1:numVars var = element.(ii); - if ~istable(var) && ~iscolumn(var) + % In order to concatenate tables together later, require + % all non-tabular variables to be columnar or empty. + if ~istable(var) && (~iscolumn(var) || isempty(var)) id = "arrow:array:list:NonTabularVariablesMustBeColumnar"; msg = "Table variables must be columnar"; error(id, msg);