Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Page properties


Discussion thread
Vote thread
JIRA


Release


Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).


Motivation


When running table API program "table.execute().print();", the columns with long string value are truncated to 30 chars, e.g.,:

...

Topics mentioned above are mixed with layered and orthogonal issues. In order to provide a clear big picture, all of them will be summarized in the following table:




sql-client.display.max-column-width, default value is 30

sqlclient

Streaming

Text longer than the value will be truncated and replaced with “...”

sqlclient

Batch

No effect. The default value 30 is hard coded. 

Text longer than 30 will be truncated and replaced with “...”

Table API

Streaming

No effect. The default value 30 is hard coded. 

Text longer than 30 will be truncated and replaced with “...”

Table API

Batch

No effect. The default value 30 is hard coded. 

Text longer than 30 will be truncated and replaced with “...”



Proposed Changes


New Display ConfigOption for Table API and SqlClient in both batch and streaming execution modes

...

After the proposed changes, the big picture looks like the following tables. During the migration phase while sql-client.display.max-column-width marked as deprecated: 



Deprecated: sql-client.display.max-column-width, default value is 30

table.display.max-column-width, default value is 30

sqlclient

Streaming

Changes will be forwarded to table.display.max-column-width

Text longer than the value will be truncated and replaced with “...”

sqlclient

Batch

No effect. 

table.display.max-column-width with the default value 30 will be used

Text longer than the value will be truncated and replaced with “...”

Table API

Streaming

No effect. 

table.display.max-column-width with the default value 30 will be used

Text longer than the value will be truncated and replaced with “...”

Table API

Batch

No effect. 

table.display.max-column-width with the default value 30 will be used

Text longer than the value will be truncated and replaced with “...”


After removing sql-client.display.max-column-width, there will be only one configuration for users:



table.display.max-column-width, default value is 30

sqlclient

Streaming

Text longer than the value will be truncated and replaced with “...”

sqlclient

Batch

Text longer than the value will be truncated and replaced with “...”

Table API

Streaming

Text longer than the value will be truncated and replaced with “...”

Table API

Batch

Text longer than the value will be truncated and replaced with “...”



Compatibility, Deprecation, and Migration Plan

...