Skip to content

Commit 59078c0

Browse files
dbulahovstbischof
authored andcommitted
fix Tuples
Signed-off-by: dbulahov <bulahovdenis@gmail.com>
1 parent fa0a431 commit 59078c0

File tree

1 file changed

+4
-4
lines changed
  • xmla/bridge/src/main/java/org/eclipse/daanse/olap/xmla/bridge/execute

1 file changed

+4
-4
lines changed

xmla/bridge/src/main/java/org/eclipse/daanse/olap/xmla/bridge/execute/Convertor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -757,14 +757,14 @@ private static Axis getAxis(CellSet cellSet, CellSetAxis axis, List<Property> pr
757757
Position prevPosition = null;
758758
Position position = pit.hasNext() ? pit.next() : null;
759759
Position nextPosition = pit.hasNext() ? pit.next() : null;
760+
List<TupleType> tuples = new ArrayList<>();
761+
TuplesType tuplesType = new TuplesTypeR(tuples);
762+
setType.add(tuplesType);
760763
while (position != null) {
764+
int k = 0;
761765
List<MemberType> memberList = new ArrayList<>();
762766
TupleType tupleType = new TupleTypeR(memberList);
763-
List<TupleType> tuples = new ArrayList<>();
764767
tuples.add(tupleType);
765-
TuplesType tuplesType = new TuplesTypeR(tuples);
766-
setType.add(tuplesType);
767-
int k = 0;
768768
for (Member member : position.getMembers()) {
769769
memberList.add(getMember(member, prevPosition, nextPosition, k++, props));
770770
}

0 commit comments

Comments
 (0)