Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow dates beyond 2038 #130

Closed
wants to merge 1 commit into from
Closed

Allow dates beyond 2038 #130

wants to merge 1 commit into from

Conversation

dveeden
Copy link

@dveeden dveeden commented Mar 22, 2017

@dveeden
Copy link
Author

dveeden commented Mar 22, 2017

The max value I calculated is of by ~7 years from what I intended it to be...

mysql> select from_unixtime(253202544000);
+-----------------------------+
| from_unixtime(253202544000) |
+-----------------------------+
| 9993-09-02 02:00:00         |
+-----------------------------+
1 row in set (0.00 sec)

@mysql-oca-bot
Copy link

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."
Thanks

@dveeden
Copy link
Author

dveeden commented Mar 22, 2017

I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

@JamieGHamilton
Copy link

253202544000 = (9999 - 1970) * 365 * 24 * 60 * 60
you forgot leap years :)

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Your code has been assigned to an internal queue. Please follow
bug http://bugs.mysql.com/bug.php?id=12654 for updates.
Thanks

gunnarku pushed a commit to facebook/mysql-8.0 that referenced this pull request Jul 21, 2017
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
gunnarku pushed a commit to facebook/mysql-8.0 that referenced this pull request Jul 25, 2017
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants