Skip to content

Commit 91ad80a

Browse files
docs(kernel): describe comment-prefixed transfer path handling
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
1 parent 6015540 commit 91ad80a

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎src/databricks/sql/backend/kernel/client.py‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,8 @@ def _strip_leading_sql_comments(sql: str) -> str:
8080
``/* … */`` block, possibly several) from ``sql``, returning the
8181
remainder.
8282
83-
Needed so staging detection sees the real leading verb: a
84-
comment-prefixed staging op (``-- upload\\nPUT …`` or
85-
``/* c */ PUT …``, common in ETL scripts) must still be classified
86-
as staging, or it would slip past the guard into the silent-no-op
87-
bug. Block comments do not nest in Databricks SQL, so a simple
88-
scan-to-``*/`` is correct.
83+
Comment-prefixed PUT/GET statements need the permitted local paths
84+
just as statements that begin with the verb do.
8985
"""
9086
i = 0
9187
n = len(sql)

0 commit comments

Comments
 (0)