nizhikov commented on a change in pull request #8821:
URL: https://github.com/apache/ignite/pull/8821#discussion_r581894119
##########
File path:
modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/sql/GridSqlStatement.java
##########
@@ -67,4 +73,19 @@ public void limit(GridSqlAst limit) {
public GridSqlAst limit() {
return limit;
}
+
+ /**
+ * @return Delimeter to use.
+ */
+ public static char delimeter() {
Review comment:
We have 2 cases here:
1. `INCLUDE_SENSITIVE = true` so Ignite just show to the user hist own query
text. All OK, nothing to do here.
2. `INCLUDE_SENSITIVE=false` and we should select a format to show query to
the user.
We can go with the default formatting, e.g:
```
SELECT
__Z0.ID,
__Z0.NAME,
__Z0.AGE
FROM
PUBLIC.TST __Z0
WHERE
__Z0.NAME = ?
```
Or we can go with the one-line query, e.g
`SELECT __Z0.ID, __Z0.NAME, __Z0.AGE FROM PUBLIC.TST __Z0 WHERE __Z0.NAME =
?`
I decided to go with the one-line format which a found more pretty.
What is your suggestion?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]