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

[Feature] add show processlist from xxx command to show process list of specify frondend #13326

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Prev Previous commit
Next Next commit
fix some metadata
  • Loading branch information
guangxuCheng committed Nov 19, 2022
commit e3f46a0948e7f3c3223bf22db9ca784077c2f1c2
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Lists the operations currently being performed by threads executing within the s
## Syntax

```SQL
SHOW [FULL] [ALL] PROCESSLIST;
SHOW [FULL] PROCESSLIST [from_clause]
```
or

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ public class SessionAction extends WebBaseAction {
private static final ArrayList<String> SESSION_TABLE_HEADER = Lists.newArrayList();

static {
SESSION_TABLE_HEADER.add("FeHost");
SESSION_TABLE_HEADER.add("Id");
SESSION_TABLE_HEADER.add("User");
SESSION_TABLE_HEADER.add("ClientHost");
SESSION_TABLE_HEADER.add("Host");
SESSION_TABLE_HEADER.add("Db");
SESSION_TABLE_HEADER.add("Command");
SESSION_TABLE_HEADER.add("ConnectionStartTime");
SESSION_TABLE_HEADER.add("Time");
SESSION_TABLE_HEADER.add("State");
SESSION_TABLE_HEADER.add("Info");
SESSION_TABLE_HEADER.add("IsPending");
SESSION_TABLE_HEADER.add("FeHost");
}

private boolean isShowAll;
Expand Down Expand Up @@ -113,5 +113,4 @@ private void appendSessionInfo(StringBuilder buffer) {
appendTableBody(buffer, rowSet);
appendTableFooter(buffer);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
public class ShowProcesslistStmt extends ShowStmt {
private static final ShowResultSetMetaData META_DATA =
ShowResultSetMetaData.builder()
.addColumn(new Column("FeHost", ScalarType.createVarchar(16)))
.addColumn(new Column("Id", ScalarType.createType(PrimitiveType.BIGINT)))
.addColumn(new Column("User", ScalarType.createVarchar(16)))
.addColumn(new Column("ClientHost", ScalarType.createVarchar(16)))
.addColumn(new Column("Host", ScalarType.createVarchar(16)))
.addColumn(new Column("Db", ScalarType.createVarchar(16)))
.addColumn(new Column("Command", ScalarType.createVarchar(16)))
.addColumn(new Column("ConnectionStartTime", ScalarType.createVarchar(16)))
.addColumn(new Column("Time", ScalarType.createType(PrimitiveType.INT)))
.addColumn(new Column("State", ScalarType.createVarchar(64)))
.addColumn(new Column("Info", ScalarType.createVarchar(32 * 1024)))
.addColumn(new Column("IsPending", ScalarType.createVarchar(16)))
.addColumn(new Column("FeHost", ScalarType.createVarchar(16)))
.build();
private final boolean isShowFull;
private final boolean isShowAll;
Expand Down