I have Tarantool with shard module and space configuration like this:
local h_box = box.schema.create_space('hotbox')
h_box:create_index('one', {type = 'hash', parts = {1, 'string'}})
h_box:create_index('two', {type = 'tree', parts = {2, 'string'}})
h_box:create_index('three', {type = 'tree', parts = {3, 'unsigned'}})
h_box:create_index('four', {type = 'tree', parts = {4, 'boolean'}})
h_box:create_index('five', {type = 'tree', parts = {5, 'unsigned'}})
h_box:create_index('six', {type = 'tree', parts = {6, 'boolean'}})
Tarantool shard module documentation says:
A shard.T:select{} request without a primary key will search all shards.
But I see error when I try calling this.
shard.h_box:select{}
---
- error: 'builtin/digest.lua:138: Usage digest.crc32(string)'
...
Also when I call shard.h_box:secondary_select{2, {limit = 10}, 'foo'}
Tarantool thrown an error:
---
- error: '/usr/share/tarantool/shard/init.lua:1015: attempt to index field ''conn''
(a nil value)'
...
How can I take all data from all shards and call selects to secondary indices?