Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
4b181cca
Commit
4b181cca
authored
10 years ago
by
Dmitry Simonenko
Browse files
Options
Downloads
Patches
Plain Diff
sophia-update: remove old test result file
parent
e2b3d202
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/sophia/sophia.result
+0
-335
0 additions, 335 deletions
test/sophia/sophia.result
with
0 additions
and
335 deletions
test/sophia/sophia.result
deleted
100644 → 0
+
0
−
335
View file @
e2b3d202
os.execute("rm -rf sophia")
---
- 0
...
space = box.schema.create_space('tweedledum', { id = 123, engine = 'sophia' })
---
...
space:create_index('primary', { type = 'tree', parts = {1, 'num'} })
---
...
for v=1, 10 do space:insert({v}) end
---
...
t = space.index[0]:select({}, {iterator = box.index.ALL})
---
...
t
---
- - [1]
- [2]
- [3]
- [4]
- [5]
- [6]
- [7]
- [8]
- [9]
- [10]
...
t = space.index[0]:select({}, {iterator = box.index.GE})
---
...
t
---
- - [1]
- [2]
- [3]
- [4]
- [5]
- [6]
- [7]
- [8]
- [9]
- [10]
...
t = space.index[0]:select(4, {iterator = box.index.GE})
---
...
t
---
- - [4]
- [5]
- [6]
- [7]
- [8]
- [9]
- [10]
...
t = space.index[0]:select({}, {iterator = box.index.LE})
---
...
t
---
- - [10]
- [9]
- [8]
- [7]
- [6]
- [5]
- [4]
- [3]
- [2]
- [1]
...
t = space.index[0]:select(7, {iterator = box.index.LE})
---
...
t
---
- - [7]
- [6]
- [5]
- [4]
- [3]
- [2]
- [1]
...
t = {}
---
...
for v=1, 10 do table.insert(t, space:get({v})) end
---
...
t
---
- - [1]
- [2]
- [3]
- [4]
- [5]
- [6]
- [7]
- [8]
- [9]
- [10]
...
space:drop()
---
...
box.snapshot()
---
- ok
...
--
-- gh-283: Sophia: hang after three creates and drops
--
s = box.schema.create_space('space0', {id = 33, engine='sophia'})
---
...
i = s:create_index('space0', {type = 'tree', parts = {1, 'STR'}})
---
...
s:insert{'a', 'b', 'c'}
---
- ['a', 'b', 'c']
...
s:drop()
---
...
s = box.schema.create_space('space0', {id = 33, engine='sophia'})
---
...
i = s:create_index('space0', {type = 'tree', parts = {1, 'STR'}})
---
...
s:insert{'a', 'b', 'c'}
---
- ['a', 'b', 'c']
...
t = s.index[0]:select({}, {iterator = box.index.ALL})
---
...
t
---
- - ['a', 'b', 'c']
...
s:drop()
---
...
s = box.schema.create_space('space0', {id = 33, engine='sophia'})
---
...
i = s:create_index('space0', {type = 'tree', parts = {1, 'STR'}})
---
...
s:insert{'a', 'b', 'c'}
---
- ['a', 'b', 'c']
...
t = s.index[0]:select({}, {iterator = box.index.ALL})
---
...
t
---
- - ['a', 'b', 'c']
...
s:drop()
---
...
--
-- gh-280: Sophia: crash if insert without index
--
s = box.schema.create_space('test', {engine='sophia'})
---
...
s:insert{'a'}
---
- error: 'No index #0 is defined in space ''test'''
...
s:drop()
---
...
---
--- gh-431: Sophia: assertion if box.begin
---
box.cfg{}
---
...
s = box.schema.create_space('tester',{engine='sophia'})
---
...
s:create_index('sophia_index', {})
---
...
s:insert{10000, 'Hilton'}
---
- [10000, 'Hilton']
...
box.begin()
---
...
s:delete{10000} -- exception
---
- error: sophia does not support transactions
...
box.rollback()
---
...
s:select{10000}
---
- - [10000, 'Hilton']
...
s:drop()
---
...
---
--- gh-456: Sophia: index size() is unsupported
---
box.cfg{}
---
...
s = box.schema.create_space('tester',{engine='sophia'})
---
...
s:create_index('sophia_index', {})
---
...
s.index[0]:len() -- exception
---
- error: SophiaIndex does not support size operation
...
box.error()
---
- error: SophiaIndex does not support size operation
...
s:drop()
---
...
---
--- gh-436: No error when creating temporary sophia space
---
box.cfg{}
---
...
s = box.schema.create_space('tester',{engine='sophia', temporary=true})
---
- error: 'Can''t modify space 512: space does not support temporary flag'
...
---
--- gh-432: Sophia: ignored limit
---
s = box.schema.create_space('tester',{id = 89, engine='sophia'})
---
...
s:create_index('sophia_index', {})
---
...
for v=1, 100 do s:insert({v}) end
---
...
t = s:select({''},{iterator='GT', limit =1})
---
- error: 'Supplied key type of part 0 does not match index part type: expected NUM'
...
t
---
- - ['a', 'b', 'c']
...
t = s:select({},{iterator='GT', limit =1})
---
...
t
---
- - [1]
...
s:drop()
---
...
s = box.schema.create_space('tester', {id = 90, engine='sophia'})
---
...
s:create_index('sophia_index', {type = 'tree', parts = {1, 'STR'}})
---
...
for v=1, 100 do s:insert({tostring(v)}) end
---
...
t = s:select({''},{iterator='GT', limit =1})
---
...
t
---
- - ['1']
...
t = s:select({},{iterator='GT', limit =1})
---
...
t
---
- - ['1']
...
s:drop()
---
...
---
--- gh-282: Sophia: truncate() does nothing
---
s = box.schema.create_space('name_of_space', {id = 33, engine='sophia'})
---
...
i = s:create_index('name_of_index', {type = 'tree', parts = {1, 'STR'}})
---
...
s:insert{'a', 'b', 'c'}
---
- ['a', 'b', 'c']
...
box.space['name_of_space']:select{'a'}
---
- - ['a', 'b', 'c']
...
box.space['name_of_space']:truncate()
---
...
box.space['name_of_space']:select{'a'}
---
- []
...
s:drop()
---
...
os.execute("rm -rf sophia")
---
- 0
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment