We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The %e %k and %l elements expect a leading space when the value is a single digit; but also permit a leading space for 2 digit numbers when available.
%e
%k
%l
Formatters also do not currently include the leading space.
{ name: "parse timestamp with %k", query: `SELECT PARSE_TIMESTAMP("%k", " 9");`, expectedRows: [][]interface{}{{createTimestampFormatFromString("1970-01-01 09:00:00+00")}}, }, { name: "parse timestamp with %k", query: `SELECT PARSE_TIMESTAMP("%k", " 9");`, expectedRows: [][]interface{}{{createTimestampFormatFromString("1970-01-01 09:00:00+00")}}, }, {name: "parse_timestamp with %D", query: `SELECT PARSE_TIMESTAMP("%D", "02/02/99");`, expectedRows: [][]interface{}{{createTimestampFormatFromString("1999-02-02 00:00:00+00")}}, }, { name: "parse timestamp with %p", query: `SELECT PARSE_TIMESTAMP("%I%p", "9am"), PARSE_TIMESTAMP("%I%p", "12am"), PARSE_TIMESTAMP("%l%p", " 2am"), PARSE_TIMESTAMP("%I%p", "10PM");`, expectedRows: [][]interface{}{{ createTimestampFormatFromString("1970-01-01 09:00:00+00"), createTimestampFormatFromString("1970-01-01 00:00:00+00"), createTimestampFormatFromString("1970-01-01 02:00:00+00"), createTimestampFormatFromString("1970-01-01 22:00:00+00"), }}, },
The text was updated successfully, but these errors were encountered:
%p
Successfully merging a pull request may close this issue.
The
%e
%k
and%l
elements expect a leading space when the value is a single digit; but also permit a leading space for 2 digit numbers when available.Formatters also do not currently include the leading space.
The text was updated successfully, but these errors were encountered: