abhioncbr opened a new issue, #14737:
URL: https://github.com/apache/pinot/issues/14737

   I am noticing, following unit test case in my local everytime
   
   ```bash
   Failures: 
   [ERROR]   DateTimeFunctionsTest.testDateTimeFunctions:81->testFunction:54 ยป 
Runtime Caught exception while executing function: fromDateTime(dateTime,'EEE 
MMM dd HH:mm:ss ZZZ yyyy')
   [ERROR]   DateTimeFunctionsTest.testDateTimeFunctions:81->testFunction:54 
expected [Mon Apr 10 20:31:30 UTC 2220] but found [Mon. Apr. 10 20:31:30 UTC 
2220]
   
   
   java.lang.AssertionError:
   Expected :Mon Apr 10 20:31:30 UTC 2220
   Actual   :Mon. Apr. 10 20:31:30 UTC 2220
   
   
        at org.testng.Assert.fail(Assert.java:111)
        at org.testng.Assert.failNotEquals(Assert.java:1578)
        at org.testng.Assert.assertEqualsImpl(Assert.java:150)
        at org.testng.Assert.assertEquals(Assert.java:132)
        at org.testng.Assert.assertEquals(Assert.java:644)
        at 
org.apache.pinot.core.data.function.DateTimeFunctionsTest.testFunction(DateTimeFunctionsTest.java:54)
        at 
org.apache.pinot.core.data.function.DateTimeFunctionsTest.testDateTimeFunctions(DateTimeFunctionsTest.java:81)
        at jdk.internal.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at 
org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:141)
        at 
org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:686)
        at 
org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:230)
        at 
org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:63)
        at 
org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:992)
        at 
org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:203)
        at 
org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:154)
        at 
org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:134)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
        at org.testng.TestRunner.privateRun(TestRunner.java:739)
        at org.testng.TestRunner.run(TestRunner.java:614)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:421)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:413)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:373)
        at org.testng.SuiteRunner.run(SuiteRunner.java:312)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:95)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1274)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1208)
        at org.testng.TestNG.runSuites(TestNG.java:1112)
        at org.testng.TestNG.run(TestNG.java:1079)
        at com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:65)
        at 
com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:105)
   
   
   java.lang.RuntimeException: Caught exception while executing function: 
fromDateTime(dateTime,'EEE MMM dd HH:mm:ss ZZZ yyyy')
   
        at 
org.apache.pinot.segment.local.function.InbuiltFunctionEvaluator$FunctionExecutionNode.execute(InbuiltFunctionEvaluator.java:248)
        at 
org.apache.pinot.segment.local.function.InbuiltFunctionEvaluator.evaluate(InbuiltFunctionEvaluator.java:115)
        at 
org.apache.pinot.core.data.function.DateTimeFunctionsTest.testFunction(DateTimeFunctionsTest.java:54)
        at 
org.apache.pinot.core.data.function.DateTimeFunctionsTest.testDateTimeFunctions(DateTimeFunctionsTest.java:81)
        at jdk.internal.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at 
org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:141)
        at 
org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:686)
        at 
org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:230)
        at 
org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:63)
        at 
org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:992)
        at 
org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:203)
        at 
org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:154)
        at 
org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:134)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
        at org.testng.TestRunner.privateRun(TestRunner.java:739)
        at org.testng.TestRunner.run(TestRunner.java:614)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:421)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:413)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:373)
        at org.testng.SuiteRunner.run(SuiteRunner.java:312)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:95)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1274)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1208)
        at org.testng.TestNG.runSuites(TestNG.java:1112)
        at org.testng.TestNG.run(TestNG.java:1079)
        at com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:65)
        at 
com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:105)
   Caused by: java.lang.IllegalStateException: Caught exception while invoking 
method: public static long 
org.apache.pinot.common.function.scalar.DateTimeFunctions.fromDateTime(java.lang.String,java.lang.String)
 with arguments: [Mon Aug 24 12:36:46 America/Los_Angeles 2009, EEE MMM dd 
HH:mm:ss ZZZ yyyy]
        at 
org.apache.pinot.common.function.FunctionInvoker.invoke(FunctionInvoker.java:142)
        at 
org.apache.pinot.segment.local.function.InbuiltFunctionEvaluator$FunctionExecutionNode.execute(InbuiltFunctionEvaluator.java:246)
        ... 29 more
   Caused by: java.lang.reflect.InvocationTargetException
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at 
org.apache.pinot.common.function.FunctionInvoker.invoke(FunctionInvoker.java:139)
        ... 30 more
   Caused by: java.lang.IllegalArgumentException: Invalid format: "Mon Aug 24 
12:36:46 America/Los_..."
        at 
org.joda.time.format.DateTimeParserBucket.doParseMillis(DateTimeParserBucket.java:186)
        at 
org.joda.time.format.DateTimeFormatter.parseMillis(DateTimeFormatter.java:834)
        at 
org.apache.pinot.common.function.DateTimePatternHandler.parseDateTimeStringToEpochMillis(DateTimePatternHandler.java:38)
        at 
org.apache.pinot.common.function.scalar.DateTimeFunctions.fromDateTime(DateTimeFunctions.java:489)
        ... 35 more
   ```
   
   not sure this is my local setup issue or it's actually failing for all 
builds. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to