Skip to content
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

Lua output unnecessarily quotes rows #4585

Open
kostja opened this issue Oct 25, 2019 · 2 comments
Open

Lua output unnecessarily quotes rows #4585

kostja opened this issue Oct 25, 2019 · 2 comments
Labels
app bug Something isn't working lua output

Comments

@kostja
Copy link
Contributor

kostja commented Oct 25, 2019

Test case:
M4GJR0Hj.txt

The output is:

rows = {
    "[257, 1, '_vinyl_deferred_delete', 'blackhole', 0, {'group_id': 1}, [{'name': 'space_id', 'type': 'unsigned'}, {'name': 'lsn', 'type': 'unsigned'}, {'name': 'tuple', 'type': 'array'}]]",

rows elements are quoted.

Yaml output works fine:

tarantool> \set output yaml
---
- true
...
tarantool> box.space._space:select{}
---
- - [257, 1, '_vinyl_deferred_delete', 'blackhole', 0, {'group_id': 1}, [{'name': 'space_id',
        'type': 'unsigned'}, {'name': 'lsn', 'type': 'unsigned'}, {'name': 'tuple',
        'type': 'array'}]]
@cyrillos cyrillos self-assigned this Oct 25, 2019
@kyukhin kyukhin added the bug Something isn't working label Oct 25, 2019
@kyukhin kyukhin added this to the 2.2.2 milestone Oct 25, 2019
@Totktonada
Copy link
Member

The case from pastebin (such services are often die, so it is better to use github's gist or attached files): M4GJR0Hj.txt.

@olegrok
Copy link
Collaborator

olegrok commented Nov 21, 2019

Simple example

tarantool> {box.tuple.new()}
{"[]"}
tarantool> {{}}
{{}}

@kyukhin kyukhin modified the milestones: 2.2.2, 2.2.3 Dec 30, 2019
@kyukhin kyukhin modified the milestones: 2.2.3, 2.3.3 Apr 20, 2020
@kyukhin kyukhin modified the milestones: 2.3.3, wishlist Apr 22, 2020
@kyukhin kyukhin removed this from the wishlist milestone Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app bug Something isn't working lua output
Projects
None yet
Development

No branches or pull requests

5 participants