Python boto simpledb不支持描述排序?或者我很困惑

Python boto simpledb不支持描述排序?或者我很困惑,python,boto,amazon-simpledb,Python,Boto,Amazon Simpledb,在我看来,python的boto不支持DESC排序。例如: conn.create_domain('testing') dom = conn.get_domain('testing') dom.put_attributes ('hulk', { 'color': 'green', 'strength' : 90 }) dom.put_attributes ('iron man', { 'color': 'yellow', 'strength' : 50 }) dom.put_attribut

在我看来,python的boto不支持DESC排序。例如:

conn.create_domain('testing')

dom = conn.get_domain('testing')

dom.put_attributes ('hulk', { 'color': 'green', 'strength' : 90 })
dom.put_attributes ('iron man', { 'color': 'yellow', 'strength' : 50 })
dom.put_attributes ('me', { 'purple': 'blue', 'strength' : 1 })
dom.put_attributes ('superman', { 'color': 'red', 'strength' : 100 })
dom.put_attributes ('captain america', { 'color': 'blue', 'strength' : 10 })

q = dom.select ("select * from testing where strength is not null order by strength desc", consistent_read=True, max_items=1)
for r in q:
    print "strongest is " + str(r.name) + " " + r['strength']

conn.delete_domain('testing')
结果是:

strongest is hulk 90
要么boto要么SimpleDB是由一个Marvel的铁杆粉丝编写的,要么我不明白什么,因为这不应该是结果

现在,如果我将其切换为按强度排序asc,我得到:

strongest is me 1
所以,如果你上升,排序似乎是正确的,但如果你下降,排序就不正确了

我试图模拟与SQL MAX函数等效的函数,SimpleDB的SELECT语法不支持该函数


顺便说一句,遗憾的是,实际的数据集没有那么丰富多彩。

对boto一无所知,我怀疑它是在将其存储为字符。。。你能按强度+0 asc和强度+0 desc排序吗?你赢了!所有SimpleDB排序都是按lex顺序进行的。Grrrrr。是的,声明Attribute.X.Value始终是一个字符串。嗯,我想简单的缺点是。。