pan3793 commented on code in PR #5881:
URL: https://github.com/apache/kyuubi/pull/5881#discussion_r1433391433


##########
externals/kyuubi-spark-sql-engine/src/main/resources/python/execute_python.py:
##########
@@ -118,6 +153,16 @@ def parse_code_into_nodes(code):
     try:
         nodes.append(NormalNode(code))
     except SyntaxError:
+        # It's possible we hit a syntax error because of a magic command. 
Split the code groups
+        # of 'normal code', and code that starts with a '%'. possibly magic 
code
+        # lines, and see if any of the lines
+        # Remove lines until we find a node that parses, then check if the 
next line is a magic
+        # line
+        # .

Review Comment:
   nit: format



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to