update: SqlGuardViolation info

This commit is contained in:
Claude
2026-06-25 12:55:24 +08:00
parent 34e6208f54
commit bbad7f831d
+1 -1
View File
@@ -36,7 +36,7 @@ def generate_job_file(code: str) -> dict[str, str]:
f"PySpark code violates SQL safety policy. "
f"Only SELECT and INSERT statements are allowed. "
f"Found forbidden statement(s): {offenses}. "
f"Rewrite the code to use only SELECT/INSERT (or DataFrame DSL)."
f"Rewrite the code to use only SELECT/INSERT."
)
path = write_job_file(code)
logger.info(f"generate_job_file ok script_path={path}")