You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by GitBox <gi...@apache.org> on 2022/11/21 06:23:54 UTC
[GitHub] [incubator-kyuubi] cfmcgrady commented on a diff in pull request #3819: [KYUUBI #3820] [Subtask] [PySpark] Skip missing MagicNode and code improvements
cfmcgrady commented on code in PR #3819:
URL: https://github.com/apache/incubator-kyuubi/pull/3819#discussion_r1027617525
##########
externals/kyuubi-spark-sql-engine/src/main/resources/python/execute_python.py:
##########
@@ -15,28 +15,34 @@
# limitations under the License.
#
-from glob import glob
import ast
-import sys
import io
import json
-import traceback
-import re
+import kyuubi_util
Review Comment:
Since the `kyuubi_util` import `py4j` module, we can't call `import kyuubi_util` before adding the `py4j` module to our `sys.path`, in another word, we can't call it before L223.
```
Traceback (most recent call last):
File "/tmp/execute_python.py", line 21, in <module>
import kyuubi_util
File "/private/tmp/kyuubi_util.py", line 20, in <module>
from py4j.clientserver import ClientServer, JavaParameters, PythonParameters
ModuleNotFoundError: No module named 'py4j'
```
--
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: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org