-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql: Pretty Printing of Tuples does not match postgres #25522
Copy link
Copy link
Closed
Labels
A-sql-pgcompatSemantic compatibility with PostgreSQLSemantic compatibility with PostgreSQLC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
Description
We do not pretty print tuples the same way that postgres does.
Postgres:
SELECT (1, 2, 'hello', NULL, NULL), (true, NULL, (false, 6.6, false));
row | row
---------------+------------------
(1,2,hello,,) | (t,,"(f,6.6,f)")Cockroach:
SELECT (1, 2, 'hello', NULL, NULL), (true, NULL, (false, 6.6, false));
+-----------------------------+--------------------------------+
| (1, 2, 'hello', NULL, NULL) | (true, NULL, (false, 6.6, |
| | false)) |
+-----------------------------+--------------------------------+
| (1,2,'hello',,) | (true,,(false, 6.6, false)) |
+-----------------------------+--------------------------------+Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-sql-pgcompatSemantic compatibility with PostgreSQLSemantic compatibility with PostgreSQLC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.