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

baunsgaard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/systemds.git

commit 02a6a6c798e5f0aa4228ce13f11096c930eadd10
Author: baunsgaard <[email protected]>
AuthorDate: Sat Oct 15 16:12:16 2022 +0200

    [SYSTEMDS-3450] DDCFOR Append
---
 .../org/apache/sysds/runtime/compress/colgroup/ColGroupDDCFOR.java | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git 
a/src/main/java/org/apache/sysds/runtime/compress/colgroup/ColGroupDDCFOR.java 
b/src/main/java/org/apache/sysds/runtime/compress/colgroup/ColGroupDDCFOR.java
index 35bb7ab65a..b2f3ff1dd5 100644
--- 
a/src/main/java/org/apache/sysds/runtime/compress/colgroup/ColGroupDDCFOR.java
+++ 
b/src/main/java/org/apache/sysds/runtime/compress/colgroup/ColGroupDDCFOR.java
@@ -435,6 +435,13 @@ public class ColGroupDDCFOR extends AMorphingMMColGroup {
 
        @Override
        public AColGroup append(AColGroup g) {
+               if(g instanceof ColGroupDDCFOR && 
Arrays.equals(g.getColIndices(), _colIndexes)) {
+                       ColGroupDDCFOR gDDC = (ColGroupDDCFOR) g;
+                       if(Arrays.equals(_reference , gDDC._reference) && 
gDDC._dict.eq(_dict)){
+                               AMapToData nd = _data.append(gDDC._data);
+                               return create(_colIndexes, _dict, nd, null, 
_reference);
+                       }
+               }
                return null;
        }
 

Reply via email to