unit tests #248
Annotations
2 errors and 2 warnings
Test:
task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck':
See 'What went wrong' below
|
Test
Execution failed for task ':core:autostyleJavaCheck'.
> The following files have format violations:
core/src/test/java/org/apache/calcite/test/RelBuilderTest.java
@@ -551,7 +551,7 @@
}
/** Test case for
-···*·<a·href="https://issues.apache.org/jira/browse/CALCITE/issues/CALCITE-6340">[CALCITE-6340]␊
+···*·<a·href="https://issues.apache.org/jira/browse/CALCITE-6340">[CALCITE-6340]␊
* RelBuilder always creates Project with Convention.NONE during aggregate_.</a>.
*/
@test void testPruneProjectInputOfAggregatePreservesConventionAndCollations() {
@@ -577,30 +577,31 @@
EnumerableRules.ENUMERABLE_SORT_RULE,
EnumerableRules.ENUMERABLE_TABLE_SCAN_RULE);
Program program = Programs.of(prepareRules);
-····node·=·program.run(node.getCluster().getPlanner(),·node,␊
-············desiredTraits,·ImmutableList.of(),·ImmutableList.of());␊
+····node·=␊
+············program.run(node.getCluster().getPlanner(),·node,·desiredTraits,·ImmutableList.of(),·ImmutableList.of());␊
System.out.println("TRAITS: " + node.getTraitSet());
System.out.println(RelOptUtil.toString(node));
node = builder.push(node)
-········.aggregate(builder.groupKey(0),·builder.aggregateCall(␊
+········.aggregate(␊
+············builder.groupKey(0),·builder.aggregateCall(␊
SqlStdOperatorTable.SUM, builder.field(0)))
.build();
RelTraitSet relTraitSet = node.getInput(0).getTraitSet();
System.out.println(relTraitSet);
System.out.println(RelOptUtil.toString(node));
-····final·RelCollation·collation1·=·RelCollations.of(new·RelFieldCollation(1,␊
-················RelFieldCollation.Direction.DESCENDING,·RelFieldCollation.NullDirection.LAST),␊
+····final·RelCollation·collation1·=␊
+················RelCollations.of(new·RelFieldCollation(1,·RelFieldCollation.Direction.DESCENDING,·RelFieldCollation.NullDirection.LAST),␊
new RelFieldCollation(0));
assertTrue(relTraitSet.contains(EnumerableConvention.INSTANCE));
assertTrue(relTraitSet.getTrait(1).satisfies(collation1));
}
/** Test case for
-···*·<a·href="https://issues.apache.org/jira/browse/CALCITE/issues/CALCITE-6340">[CALCITE-6340]␊
+···*·<a·href="https://issues.apache.org/jira/browse/CALCITE-6340">[CALCITE-6340]␊
* RelBuilder always creates Project with Convention.NONE during aggregate_.</a>.
*/
@test void testPruneProjectInputOfAggregatePreservesConventionAndDistribution() {
@@ -619,13 +620,14 @@
RuleSets.ofList(EnumerableRules.ENUMERABLE_PROJECT_RULE,
... (16 more lines that didn't fit)
Run './gradlew autostyleApply' to fix the violations.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-java@v2, burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Loading