This is an automated email from the ASF dual-hosted git repository.

yiconghuang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/texera.git


The following commit(s) were added to refs/heads/main by this push:
     new dd40246f6f fix: use `TEXERA_HOME` for jooq (#3886)
dd40246f6f is described below

commit dd40246f6f310b35103c6b3ae8029c105252ba69
Author: Yicong Huang <[email protected]>
AuthorDate: Sun Oct 12 22:14:11 2025 -0700

    fix: use `TEXERA_HOME` for jooq (#3886)
    
    This PR lets jooq use `TEXERA_HOME` to find configurations.
    
    ---------
    
    Signed-off-by: Yicong Huang <[email protected]>
---
 .../scala/org/apache/texera/dao/JooqCodeGenerator.scala    | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git 
a/common/dao/src/main/scala/org/apache/texera/dao/JooqCodeGenerator.scala 
b/common/dao/src/main/scala/org/apache/texera/dao/JooqCodeGenerator.scala
index 0283d934fd..f3aff9f3f0 100644
--- a/common/dao/src/main/scala/org/apache/texera/dao/JooqCodeGenerator.scala
+++ b/common/dao/src/main/scala/org/apache/texera/dao/JooqCodeGenerator.scala
@@ -30,13 +30,21 @@ object JooqCodeGenerator {
   @throws[Exception]
   def main(args: Array[String]): Unit = {
     // Load jOOQ configuration XML
-    val jooqXmlPath: Path =
-      
Path.of("dao").resolve("src").resolve("main").resolve("resources").resolve("jooq-conf.xml")
+    val jooqXmlPath: Path = Path
+      .of(sys.env.getOrElse("TEXERA_HOME", "."))
+      .resolve("common")
+      .resolve("dao")
+      .resolve("src")
+      .resolve("main")
+      .resolve("resources")
+      .resolve("jooq-conf.xml")
     val jooqConfig: Configuration = 
GenerationTool.load(Files.newInputStream(jooqXmlPath))
 
     // Load storage.conf from the specified path
     val storageConfPath: Path = Path
-      .of("config")
+      .of(sys.env.getOrElse("TEXERA_HOME", "."))
+      .resolve("common")
+      .resolve("config")
       .resolve("src")
       .resolve("main")
       .resolve("resources")

Reply via email to