carloea2 commented on code in PR #9240:
URL: https://github.com/apache/texera/pull/9240#discussion_r4606428956


##########
workflow-compiling-service/src/main/scala/org/apache/texera/amber/translator/WorkflowToPythonTranslator.scala:
##########
@@ -38,6 +38,11 @@ class WorkflowToPythonTranslator extends LazyLogging {
   // (e.g. Split has port 0 and port 1, each with its own assigned dfN var).
   private type PortKey = (String, Int) // (opId, portIdx)
 
+  // The files the export's zip holds, which unzip into the directory the 
script
+  // reads its sources from. A source offering one of these names would be
+  // overwritten by it, so they count as taken before any source is named.
+  private val archiveFileNames = Set("script.py", "texera_helpers.py")

Review Comment:
   On Windows, an input named `Script.py` still collides with `script.py`. I 
unpacked the zip next to the input and the export read its own code. Please 
compare filenames case insensitively and show the new filename when an input 
needs renaming.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to