@@ -1200,27 +1200,17 @@ public static long timestampDiff(String unit, long timestamp1, long timestamp2)
12001200 return DateTimeUtils .getTimestampField (chronology , unit ).getDifferenceAsLong (timestamp2 , timestamp1 );
12011201 }
12021202
1203- @ ScalarFunction (names = {"timestampDiffMVMV" , "dateDiffMVMV" })
1204- public static long [] timestampDiffMVMV (String unit , long [] timestamp1 , long [] timestamp2 ) {
1205- assert timestamp1 .length == timestamp2 .length ;
1206-
1207- long [] results = new long [timestamp1 .length ];
1208- for (int i = 0 ; i < timestamp1 .length ; i ++) {
1209- results [i ] = timestampDiff (unit , timestamp1 [i ], timestamp2 [i ]);
1210- }
1211- return results ;
1212- }
1213-
1214- @ ScalarFunction (names = {"timestampDiffMVFixed" , "dateDiffMVFixed" })
1215- public static long [] timestampDiffMVFixed (String unit , long [] timestamp1 , long timestamp2 ) {
1203+ @ ScalarFunction (names = {"timestampDiffMV" , "dateDiffMV" })
1204+ public static long [] timestampDiffMV (String unit , long [] timestamp1 , long timestamp2 ) {
12161205 long [] results = new long [timestamp1 .length ];
12171206 for (int i = 0 ; i < timestamp1 .length ; i ++) {
12181207 results [i ] = timestampDiff (unit , timestamp1 [i ], timestamp2 );
12191208 }
12201209 return results ;
12211210 }
1222- @ ScalarFunction (names = {"timestampDiffMVFixedReverse" , "dateDiffMVFixedReverse" })
1223- public static long [] timestampDiffMVFixedReverse (String unit , long timestamp1 , long [] timestamp2 ) {
1211+
1212+ @ ScalarFunction (names = {"timestampDiffMVReverse" , "dateDiffMVReverse" })
1213+ public static long [] timestampDiffMVReverse (String unit , long timestamp1 , long [] timestamp2 ) {
12241214 long [] results = new long [timestamp2 .length ];
12251215 for (int i = 0 ; i < timestamp2 .length ; i ++) {
12261216 results [i ] = timestampDiff (unit , timestamp1 , timestamp2 [i ]);
0 commit comments