python-snowflake icon indicating copy to clipboard operation
python-snowflake copied to clipboard

max_timestamp may be wrong

Open sam3125C opened this issue 6 years ago • 0 comments

You calculate the max_timestamp by this: max_timestamp = 1 << (64 - datacenter_id_bits - worker_id_bits - sequence_id_bits)

You seem to have forgotten the timestamp can only be 41-bit.

sam3125C avatar Aug 31 '18 03:08 sam3125C