Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ZEPPELIN-6003] Log source info of SQL in JDBCInterpreter #4732

Merged
merged 2 commits into from
Mar 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ private InterpreterResult executeSql(String sql,
Statement statement;
ResultSet resultSet = null;
String paragraphId = context.getParagraphId();
String noteId = context.getNoteId();
String user = getUser(context);

try {
Expand Down Expand Up @@ -799,7 +800,8 @@ private InterpreterResult executeSql(String sql,
// so we need to trim it first in this case.
sqlToExecute = sqlToExecute.trim();
}
LOGGER.info("Execute sql: " + sqlToExecute);
LOGGER.info(String.format("[%s|%s|%s] Execute sql: %s",
user, noteId, paragraphId, sqlToExecute));
kevinjmh marked this conversation as resolved.
Show resolved Hide resolved
statement = connection.createStatement();

// fetch n+1 rows in order to indicate there's more rows available (for large selects)
Expand Down
Loading