fingerprint64 results inconsistent with Google BigQuery
See original GitHub issueGoogle BigQuery has farm_fingerprint 64 as a built in function. https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-and-operators#farm_fingerprint
BiqQuery:
SELECT FARM_FINGERPRINT("1footrue");
Returns -1541654101129638711
lovell/farmhash:
farmhash.fingerprint64("1footrue")
yields 16905089972579912905
Shouldn’t they produce the same? For any string that BQ produces a positive hash for i.e. “2applefalse” both this package and bigquery converge on 2794438866806483259.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Random sample in bigquery gives inconsistent results
In this result set ( bquijob_124ad56f_15da8af982e ) I only get a single row, containing the count of bigarticle = 1. Google Cloud Collective....
Read more >Legacy SQL Functions and Operators | BigQuery - Google Cloud
BIT_AND(), Returns the result of a bitwise AND operation . ... It is similar to a WHERE clause, but different in two important...
Read more >BigQuery returning different results for the same query - Reddit
I'm seeing queries (Select statements) returning different results overtime they're ran. Any reason why this can be happening?
Read more >Python vs BigQuery FarmHash Sometimes Do Not Equal
https://cloud.google.com/bigquery/docs/reference/standard-sql/ ... import farmhash print(farmhash.fingerprint64('6823339101')). FlyingTeller 14937. score:5.
Read more >The Benefits of Using BigQuery with Google Analytics Data
BigQuery is the cloud data warehouse component of Google Cloud Platform. ... The result is customer information alongside web analytics and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This also works, no?
fingerprint64signed("1footrue")
yields “-1541654101129638711”Thanks for clarification on this int type issue. I was taken by surprise as well.
then it will give the same result as BigQuery on ‘x’