cli/sql: time-related types often display extraneous info #21390
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
S-3-ux-surprise
Issue leaves users wondering whether CRDB is behaving properly. Likely to hurt reputation/adoption.
pq
represents all time-related types (DATE
,TIME
,TIMESTAMP
,TIMESTAMPTZ
) using Go'stime.Time
. As a result,cockroach sql
often uses too much precision when it displays these types. This is only a display bug but it can be confusing for users.The most egregious example is
TIME
, where we display an irrelevant date and timezone.But
DATE
andTIMESTAMP
are also somewhat misleading.The text was updated successfully, but these errors were encountered: