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
str instead of string #4548
Comments
Currently, the only way to get this field_type in _space is to create a space in Lua. Also:
|
Still, you can get aliases in _space and _index using something like this:
Also, 'uint' is not supported for _index in this case. I think this is a legacy, but not sure if this is a bug. PS. I think it might be a good idea to change the field type to canonical if the space was created using “box.schema.space:create()” or “box.schema.create_space()”. In this case, it will not be a bug, but a feature, I think. |
Okay, call it a feature request instead of a bug. But if everybody realizes that the stored type name should always be the same, what difference does it make? |
I have Ubuntu 18.04. I have Tarantool 2.3, pulled from source today.
I execute this request:
tarantool> box.space._space:select(364)
{'name': 'name', 'type': 'string'}, {'name': 'is_deferred', 'type': 'boolean'},
{'name': 'language', 'type': 'str'}, {'name': 'code', 'type': 'str'}]]
...
I do not believe that language should be 'str' and code should be 'str'.
All other string fields in system spaces are 'string'.
In fact I believe that always when I use a synonym (during creation
of a format or an index) the result should be the canonical form not
the synonym. (I do not test whether this is always true.)
I notice that when in SQL I say
CREATE TABLE things (remark TEXT PRIMARY KEY);
the result is a 'string' not a 'text'.
The text was updated successfully, but these errors were encountered: