jnturton commented on code in PR #2987: URL: https://github.com/apache/drill/pull/2987#discussion_r2076801836
########## exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestNestedDateTimeTimestamp.java: ########## @@ -46,6 +48,13 @@ public class TestNestedDateTimeTimestamp extends BaseTestQuery { private static final String DATAFILE = "cp.`datetime.parquet`"; private static final Map<String, Object> expectedRecord = new TreeMap<String, Object>(); + @BeforeClass + public static void setUpTimeZone() { Review Comment: I think this could go in separately, accompanied by an excplicit decision that running the test suite (even Drill itself?) is unsupported outside of UTC? I personally think things should still basically work on machines in different time zones. I know these don't work today, but maybe it _should_ and what's really wanted is a fix, while this make the symptoms disappear. I've got `-Djunit.args="-Duser.timezone=UTC"` in my local `mvn test` invocations in the meantime ########## exec/java-exec/src/main/java/org/apache/drill/exec/compile/ClassTransformer.java: ########## @@ -307,26 +288,38 @@ public Class<?> getImplementationClass( s = s.replace(DrillFileUtils.SEPARATOR_CHAR, '.'); names.add(nextSet.getChild(s)); } - classLoader.injectByteCode(nextGenerated.dot, result.bytes); + + // Only inject bytecode if not already injected + if (!injectedClassNames.contains(nextGenerated.dot)) { Review Comment: It's hard to tell from the diff what was broken here before. Was the `namesCompleted` Set not enough to keep track of classes that had already been merged? -- 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: dev-unsubscr...@drill.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org