forked from apache/doris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1ea131
commit 7c91858
Showing
26 changed files
with
691 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
regression-test/data/javaudf_p0/test_javaudtf_arrayint.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !select_default -- | ||
1 2 2022-01-01 2022-01-01T11:11:11 a1b | ||
2 4 2022-01-01 2022-01-01T11:11:11 a2b | ||
3 6 2022-01-01 2022-01-01T11:11:11 a3b | ||
4 8 2022-01-01 2022-01-01T11:11:11 a4b | ||
5 10 2022-01-01 2022-01-01T11:11:11 a5b | ||
6 12 2022-01-01 2022-01-01T11:11:11 a6b | ||
7 14 2022-01-01 2022-01-01T11:11:11 a7b | ||
8 16 2022-01-01 2022-01-01T11:11:11 a8b | ||
9 18 2022-01-01 2022-01-01T11:11:11 a9b | ||
10 20 2022-06-06 2022-01-01T12:12:12 a10b | ||
|
||
-- !select1 -- | ||
1 a1b 1 | ||
2 a2b 2 | ||
3 a3b 3 | ||
4 a4b 4 | ||
5 a5b 5 | ||
6 a6b 6 | ||
7 a7b 7 | ||
8 a8b 8 | ||
9 a9b 9 | ||
10 a10b 10 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !select_default -- | ||
111 11111.111110000 222222.333333300 | ||
112 1234556.111110000 222222.333333300 | ||
113 87654321.111110000 \N | ||
|
||
-- !select1 -- | ||
111 11111.111110000 22222.222220000 | ||
112 1234556.111110000 2469112.222220000 | ||
113 87654321.111110000 175308642.222220000 | ||
|
||
-- !select2 -- | ||
111 222222.333333300 444444.666666600 | ||
112 222222.333333300 444444.666666600 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !select_default -- | ||
111 11111.111 222222.33 1.234567834455677E7 1111112.0 | ||
112 1234556.1 222222.33 2.2222222233333334E8 4.444444444444556E12 | ||
113 8.765432E7 \N 6.666666666666667E9 \N | ||
|
||
-- !select1 -- | ||
111 1.234567834455677E7 1.234567834455677E8 | ||
112 2.2222222233333334E8 2.2222222233333335E9 | ||
113 6.666666666666667E9 6.666666666666667E10 | ||
|
||
-- !select2 -- | ||
111 1111112.0 1.111112E7 | ||
112 4.444444444444556E12 4.4444444444445555E13 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !select_default -- | ||
1 1 abc,defg poiuytre,abcdefg | ||
2 2 abc,defg poiuytre,abcdefg | ||
0 3 abc,defg poiuytre,abcdefg | ||
1 4 abc,defg poiuytre,abcdefg | ||
2 5 abc,defg poiuytre,abcdefg | ||
0 6 abc,defg poiuytre,abcdefg | ||
1 7 abc,defg poiuytre,abcdefg | ||
2 8 abc,defg poiuytre,abcdefg | ||
9 9 ab,cdefg poiuytreabcde,fg | ||
|
||
-- !select1 -- | ||
1 abc,defg 1 | ||
1 abc,defg 1 | ||
1 abc,defg 1 | ||
2 abc,defg 2 | ||
2 abc,defg 2 | ||
2 abc,defg 2 | ||
2 abc,defg 2 | ||
2 abc,defg 2 | ||
2 abc,defg 2 | ||
9 ab,cdefg 9 | ||
9 ab,cdefg 9 | ||
9 ab,cdefg 9 | ||
9 ab,cdefg 9 | ||
9 ab,cdefg 9 | ||
9 ab,cdefg 9 | ||
9 ab,cdefg 9 | ||
9 ab,cdefg 9 | ||
9 ab,cdefg 9 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !select_default -- | ||
1 1 abc,defg poiuytre,abcdefg | ||
2 2 abc,defg poiuytre,abcdefg | ||
0 3 abc,defg poiuytre,abcdefg | ||
1 4 abc,defg poiuytre,abcdefg | ||
2 5 abc,defg poiuytre,abcdefg | ||
0 6 abc,defg poiuytre,abcdefg | ||
1 7 abc,defg poiuytre,abcdefg | ||
2 8 abc,defg poiuytre,abcdefg | ||
9 9 ab,cdefg poiuytreabcde,fg | ||
|
||
-- !select1 -- | ||
0 abc,defg abc | ||
0 abc,defg defg | ||
0 abc,defg abc | ||
0 abc,defg defg | ||
1 abc,defg abc | ||
1 abc,defg defg | ||
1 abc,defg abc | ||
1 abc,defg defg | ||
1 abc,defg abc | ||
1 abc,defg defg | ||
2 abc,defg abc | ||
2 abc,defg defg | ||
2 abc,defg abc | ||
2 abc,defg defg | ||
2 abc,defg abc | ||
2 abc,defg defg | ||
9 ab,cdefg ab | ||
9 ab,cdefg cdefg | ||
|
||
-- !select2 -- | ||
|
31 changes: 31 additions & 0 deletions
31
regression-test/java-udf-src/src/main/java/org/apache/doris/udf/UDTFArrayIntTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
package org.apache.doris.udf; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class UDTFArrayIntTest { | ||
public ArrayList<Integer> evaluate(ArrayList<Integer> val) { | ||
if (val == null) return null; | ||
ArrayList<Integer> result = new ArrayList<>(); | ||
for (int i = 0; i < val.size(); i = i + 2) { | ||
result.add(val.get(i)); | ||
} | ||
return val; | ||
} | ||
} |
Oops, something went wrong.