-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
SQL: IP type reported to have column size of 0 #52762
Labels
Comments
Pinging @elastic/es-search (:Search/SQL) |
matriv
added a commit
to matriv/elasticsearch
that referenced
this issue
Mar 3, 2020
Set size/displaySize to 45 which is the maximum string for an IP (v6), since IPs are returned as strings. Fixes: elastic#52762
matriv
added a commit
that referenced
this issue
Mar 4, 2020
Set size/displaySize to 45 which is the maximum string for an IP (v6), since IPs are returned as strings. Fixes: #52762
matriv
added a commit
that referenced
this issue
Mar 4, 2020
matriv
added a commit
that referenced
this issue
Mar 4, 2020
matriv
added a commit
that referenced
this issue
Mar 4, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
IP
type is currently reported to have the column size (i.e. older "precision") of 0. This is reported inSYS TYPES
.This value is passed to the client applications and older ones use it as-is to allocate buffers to have the values returned in; which results in them getting just a string null-terminator only for the IP fields (i.e. empty string).
The value should contain the maximum length of an IP address in characters (as the type is backed by a KEYWORD).
(Collaterally, the
DataType
.size
forIP
value should be corrected from current 39 to 45.)The text was updated successfully, but these errors were encountered: