Allow dates beyond 2038 #130
Conversation
|
The max value I calculated is of by ~7 years from what I intended it to be...
|
|
Hi, thank you for your contribution. Please confirm this code is submitted under the terms of the OCA (Oracle's Contribution Agreement) you have previously signed by cutting and pasting the following text as a comment: |
|
I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it. |
|
253202544000 = (9999 - 1970) * 365 * 24 * 60 * 60 |
|
Hi, thank you for your contribution. Your code has been assigned to an internal queue. Please follow |
Summary: This diff optionally enables to skip calling rocksdb::GetApproximateSize() when FORCE INDEX is used. rocksdb::GetApproximateSize() is relatively expensive. Existing rocksdb_records_in_range variable also skips calling GetApproximateSize(), but this applies to all queries so possibilities to choose wrong index is quite high. rocksdb_force_index_records_in_range reduces the possibility. Default is 0 -- not skipping GetApproximateSize(). There are cases where accurate estimate is needed -- i.e. to decide proper join ordering or how many prefix columns to be used. So it is not possible to always skip calling GetApproximateSize(). rocksdb_force_index_records_in_range is useful when users understand their queries with FORCE INDEX don't need accurate estimated rows. Test Plan: mtr Reviewers: hermanlee4, spetrunia, jkedgar Reviewed By: jkedgar Subscribers: webscalesql-eng Differential Revision: https://reviews.facebook.net/D52977
Summary: This diff optionally enables to skip calling rocksdb::GetApproximateSize() when FORCE INDEX is used. rocksdb::GetApproximateSize() is relatively expensive. Existing rocksdb_records_in_range variable also skips calling GetApproximateSize(), but this applies to all queries so possibilities to choose wrong index is quite high. rocksdb_force_index_records_in_range reduces the possibility. Default is 0 -- not skipping GetApproximateSize(). There are cases where accurate estimate is needed -- i.e. to decide proper join ordering or how many prefix columns to be used. So it is not possible to always skip calling GetApproximateSize(). rocksdb_force_index_records_in_range is useful when users understand their queries with FORCE INDEX don't need accurate estimated rows. Test Plan: mtr Reviewers: hermanlee4, spetrunia, jkedgar Reviewed By: jkedgar Subscribers: webscalesql-eng Differential Revision: https://reviews.facebook.net/D52977

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

My first go at fixing https://bugs.mysql.com/bug.php?id=12654