Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zouxxyy committed Sep 18, 2024
1 parent 113822e commit 41bbbfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,11 @@ public Projection complement(int fieldsNumber) {

@Override
public int[] toTopLevelIndexes() {
// todo: fix it usage
return Arrays.stream(projection).mapToInt(arr -> arr[0]).toArray();
return Arrays.stream(projection)
.map(arr -> arr[0])
.distinct()
.mapToInt(Integer::intValue)
.toArray();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class PaimonQueryTest extends PaimonSparkTestBase {

sql("""
|SELECT
| course.grade,
| name,
| course.course_name
|FROM
Expand Down

0 comments on commit 41bbbfc

Please sign in to comment.