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
When I loadtable using JuliaDB and I tell the colparsers that a certain column is a Char , I get an error:
loadtable
colparsers
Char
MethodError: no method matching fromtype(::Type{Char})
Can't TextParse parse characters? Or is it JuliaDB's fault?
The text was updated successfully, but these errors were encountered:
It's TextParse! Just need to add a parser for Char.
Sorry, something went wrong.
Alright, I wrote a custom parser:
c_parse = CustomParser(Char) do str, i, len, opts return (Nullable(str[i]), i+2) end
It works: TextParse.tryparsenext(c_parse, "abcd;a;123.23;", 6, 1, nothing) gives: Nullable{Char}('A')
TextParse.tryparsenext(c_parse, "abcd;a;123.23;", 6, 1, nothing)
Nullable{Char}('A')
But while the parse is of type Char, the column in my table has type TextParse.StrRange! Is this an issue for JuliaDB?
TextParse.StrRange
This works:
char_parser = CustomParser(Char) do str, i, len, opts return (Nullable{Char}(str[i]), i + 1) end ```
No branches or pull requests
When I
loadtable
using JuliaDB and I tell thecolparsers
that a certain column is aChar
, I get an error:MethodError: no method matching fromtype(::Type{Char})
Can't TextParse parse characters? Or is it JuliaDB's fault?
The text was updated successfully, but these errors were encountered: