Akil, I think that we currently don't have a testsuite for testing Hyracks jobs. You could implement it similar to JsonLogicalPlanTest [1] / OptimizerTest [2]. The client API already has a flag to request generated job. See [3]: AsterixJavaClient.compile(..., boolean printJob)
[1] https://github.com/apache/asterixdb/blob/master/asterixdb/asterix-app/src/test/java/org/apache/asterix/test/jsonplan/JsonLogicalPlanTest.java [2] https://github.com/apache/asterixdb/blob/master/asterixdb/asterix-app/src/test/java/org/apache/asterix/test/optimizer/OptimizerTest.java [3] https://github.com/apache/asterixdb/blob/master/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/java/AsterixJavaClient.java#L100 Thanks, -- Dmitry On 5/10/21, 12:51 PM, "Akil Sevim" <[email protected]> wrote: Hello All, Is there any way to implement a test to check hyracks jobs produced as expected? For instance, we want to be sure about is having specific operators run on multiple nodes i.e., have proper partitioning constraints. Or, should testing the optimized logical plan be enough for any case making hyrakcs jobs testing unnecessary? Best regards, Akil.
