tarantool / document

Effortless JSON storage for Tarantool
BSD 2-Clause "Simplified" License
24 stars 4 forks source link

Vinyl engine #5

Closed blry closed 4 years ago

blry commented 6 years ago

Hi, I've found out that tarantool crashes when I insert a tuple with a different format.

-- Tarantool: 1.9.0-52-g38b2a29ff

local profileSpace = box.schema.create_space('profile', {
    engine = 'vinyl'
})

local doc = require("document")

doc.create_index(profileSpace, 'primary', {parts={'oid', 'string'}})
doc.insert(profileSpace, {oid = 'test1'})
doc.insert(profileSpace, {oid = 'test2', email = 'test2@mail'})

Error: Vinyl does not support changing space format of a non-empty space

knazarov commented 6 years ago

@blry try it with Tarantool 1.10. It may just work there, as we've added changing space format on the fly