Skip to content

Commit

Permalink
Issue facebook#33: SELECT ... FROM rocksdb_table ORDER BY primary_key…
Browse files Browse the repository at this point in the history
… uses sorting

Summary:
Fix the index properties returned by the storage engine:
- ha_rocksdb::primary_key_is_clustered()= true;
- ha_rocksdb::keys_to_use_for_scanning()= &key_map_full;

Differential Revision: https://reviews.facebook.net/D33957

fbshipit-source-id: 06281bdcc18
  • Loading branch information
spetrunia authored and inikep committed Sep 1, 2021
1 parent ac5a690 commit 676dc83
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions storage/rocksdb/ha_rocksdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,15 @@ class ha_rocksdb: public handler
*/
ulong index_flags(uint inx, uint part, bool all_parts) const;

const key_map * keys_to_use_for_scanning()
{
return &key_map_full;
}
bool primary_key_is_clustered()
{
return true;
}

int rename_table(const char *from, const char *to);

int convert_record_from_storage_format(rocksdb::Slice *slice, uchar *buf);
Expand Down

0 comments on commit 676dc83

Please sign in to comment.