-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add precision option to equality test
- Loading branch information
Showing
7 changed files
with
82 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
id,float_number | ||
05ac09c4-f947-45a8-8c14-88f430f8b294,62.3888186 | ||
cfae9054-940b-42a1-84d4-052daae6194f,81.2511656 | ||
6029501d-c274-49f2-a69d-4c75a3d9931d,23.3959675 | ||
c653e520-df81-4a5f-b44b-bb1b4c1b7846,72.2100841 | ||
59caed0d-53d6-473c-a88c-3726c7693f05,68.6029434 | ||
b441f6a0-ce7f-4ad9-b96b-b41d73a94ae7,72.7861425 | ||
26491840-bfd4-4496-9ca9-ad9220a2de47,35.3662223 | ||
b4f233ce-a494-4bb6-9cf2-73bb6854e58a,89.1524680 | ||
11c979b7-2661-4375-8143-7c9b54b90627,19.5755431 | ||
a8057f73-312e-48e6-b344-f4a510a2c4a8,22.9237047 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
integration_tests/models/generic_tests/test_equality_floats.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
with data as ( | ||
|
||
select * from {{ ref('data_test_equality_floats') }} | ||
|
||
) | ||
|
||
select | ||
id, float_number + 0.0000001 as float_number | ||
from data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters