JingGe commented on code in PR #21322:
URL: https://github.com/apache/flink/pull/21322#discussion_r1092999396


##########
flink-table/flink-sql-client/src/test/resources/sql/select.q:
##########
@@ -221,3 +221,72 @@ FROM (VALUES
 
+----------+---------------------+-------------------------+-------------------------------+-------------------------+-------------------------+-------------------------------+
 2 rows in set
 !ok
+
+# ==========================================================================
+# Testing behavior of sql-client.display.max-column-width

Review Comment:
   It is really difficult to use cross modules ConfigOptions and keep them 
synchronized. There are options:
   
   - option 1: use `SqlConfigOption#DISPLAY_MAX_COLUMN_WIDTH` as the fallback 
key of `TableConfigOption#DISPLAY_MAX_COLUMN_WIDTH`. This does not work because 
`flink-table-api-java` does not depends on `flink-sql`. Adding new dependency 
will trigger a cycle dependency issue.
   - option 2: use `TableConfigOption#DISPLAY_MAX_COLUMN_WIDTH` as the fallback 
key of `SQLConfigOption#DISPLAY_MAX_COLUMN_WIDTH`. If ResultDescriptor uses 
`TableConfigOption#DISPLAY_MAX_COLUMN_WIDTH`, any change of 
`sql-client.display.max-column-width` will not be able to work.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to