New issue
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
expr: complete string <-> datum casts #1378
Comments
This is especially important for file-based sources that are parsed using a regex. Each column in such a source is a string, so it's impossible to perform basic calculations such as |
Still remaining:
|
Are cdo=> SELECT COALESCE(CAST('2020-01-01' AS DATE), '(null)');
coalesce
----------
(null)
(1 row) |
D'oh, I wrote those all backwards. Sorry. |
(As in, |
Assigning to @sploiselle, who I hear is going to be finishing off the remaining casts as a follow-up to his INTERVAL work |
For every datum variant, there should be a cast from string and a cast to string. Once #1377 is complete, the cast functions will be a trivial wrapper over the conversion functions in
repr
.The text was updated successfully, but these errors were encountered: