Fix/disable unit tests in JdbcAdapterTest #40
Annotations
2 errors and 1 warning
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/main/java/org/apache/calcite/schema/Schemas.java
@@ -133,7 +133,7 @@
public static SchemaPlus getExistingSubSchema(SchemaPlus schema, String name){
SchemaPlus subSchema = schema.getSubSchema(name);
-····if·(·subSchema·==·null·)·{␊
+····if·(·subSchema·==·null)·{␊
throw new NoSuchElementException("Sub schema " + name + " not found in " + schema.getName());
}
return subSchema;
core/src/test/java/org/apache/calcite/test/JdbcAdapterTest.java
@@ -1273,12 +1273,18 @@
@test void testAmbiguousColumn() {
CalciteAssert.model(JdbcTest.FOODMART_SCOTT_MODEL)
-········.query("select\n"·+␊
-············"··················\"store_id\"·\"latest_id\",\n"·+␊
-············"··················max(\"store_type\")·\"latest_store_type\"\n"·+␊
-············"················from\n"·+␊
-············"··················(·SELECT·\"store_id\",\"store_type\"·FROM·\"foodmart\".\"store\")·\n"·+␊
-············"················group·by\n"·+␊
+········.query("select\n"␊
+··+␊
+············"··················\"store_id\"·\"latest_id\",\n"␊
+··+␊
+············"··················max(\"store_type\")·\"latest_store_type\"\n"␊
+··+␊
+············"················from\n"␊
+··+␊
+············"··················(·SELECT·\"store_id\",\"store_type\"·FROM·\"foodmart\".\"store\")·\n"␊
+··+␊
+············"················group·by\n"␊
+··+␊
" \"store_id\"")
.runs()
.enable(CalciteAssert.DB == CalciteAssert.DatabaseInstance.HSQLDB)
Run './gradlew autostyleApply' to fix the violations.
|
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/
|
The logs for this run have expired and are no longer available.
Loading