From b3108a90bea3b46def5f02043964320dece299a3 Mon Sep 17 00:00:00 2001 From: Yingtao Liu Date: Wed, 8 Nov 2023 21:51:30 -0800 Subject: [PATCH] debug resource return null --- partiql-lang/build.gradle.kts | 6 +++++- .../lang/planner/transforms/PartiQLSchemaInferencerTests.kt | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/partiql-lang/build.gradle.kts b/partiql-lang/build.gradle.kts index ec30faea37..ff4f38c285 100644 --- a/partiql-lang/build.gradle.kts +++ b/partiql-lang/build.gradle.kts @@ -81,7 +81,11 @@ tasks.processResources { } tasks.processTestResources { - from("${project(":partiql-planner").buildDir}/resources/testFixtures") + from("${project(":partiql-planner").buildDir}/resources/testFixtures") { + this.eachFile { + println(this.sourceName) + } + } } tasks.shadowJar { diff --git a/partiql-lang/src/test/kotlin/org/partiql/lang/planner/transforms/PartiQLSchemaInferencerTests.kt b/partiql-lang/src/test/kotlin/org/partiql/lang/planner/transforms/PartiQLSchemaInferencerTests.kt index 200086394b..c4ff86826c 100644 --- a/partiql-lang/src/test/kotlin/org/partiql/lang/planner/transforms/PartiQLSchemaInferencerTests.kt +++ b/partiql-lang/src/test/kotlin/org/partiql/lang/planner/transforms/PartiQLSchemaInferencerTests.kt @@ -137,7 +137,7 @@ class PartiQLSchemaInferencerTests { fun testSubqueries(tc: TestCase) = runTest(tc) companion object { - val inputStream = PartiQLSchemaInferencerTests::class.java.getResourceAsStream("/resource_path.txt")!! + val inputStream = this::class.java.getResourceAsStream("/resource_path.txt")!! val catalogProvider = MemoryCatalog.Provider().also { val map = mutableMapOf>>()