-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gtools-1.0.3 (2018-08-18); exit if too many obs: SPI 32-bit integer bug
* Closes #43 * Gtools exits with error if `_N > 2^31-1` and points the user to the pertinent bug report. The SPI uses long integers (32-bit) instead of long long integers (64-bit) for its observation numbers (not to mention theyare signed integers, but alas). At any rate, this de facto limits the number of observations to 2^31-1.
- Loading branch information
Showing
20 changed files
with
95 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: "generic-1.0.0-{build}" | ||
version: "generic-1.0.3-{build}" | ||
|
||
environment: | ||
matrix: | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
*! version 1.0.1 23Jul2018 Mauricio Caceres Bravo, [email protected] | ||
*! Encode varlist using Jenkin's 128-bit spookyhash via C plugins | ||
*! version 1.0.3 18Aug2018 Mauricio Caceres Bravo, [email protected] | ||
*! gtools function internals | ||
|
||
* rc 17000 | ||
* rc 17001 - no observations | ||
|
@@ -8,6 +8,7 @@ | |
* rc 17004 - strL variables could not be compressed | ||
* rc 17005 - strL contains binary data | ||
* rc 17006 - strL variables uknown error | ||
* rc 17800 - More than 2^31-1 obs | ||
* rc 17459 | ||
* rc 17900 | ||
* rc 17999 | ||
|
@@ -47,6 +48,17 @@ program _gtools_internal, rclass | |
exit 17001 | ||
} | ||
|
||
if ( `=_N > 2^31-1' ) { | ||
local nmax = trim("`: disp %21.0gc 2^31-1'") | ||
di as err `"too many observations"' | ||
di as err `""' | ||
di as err `"A Stata bug prevents gtools from working with more than `nmax' observations."' | ||
di as err `"See {browse "https://www.statalist.org/forums/forum/general-stata-discussion/general/1457637"}"' | ||
di as err `"and {browse "https://github.com/mcaceresb/stata-gtools/issues/43"}"' | ||
clean_all 17800 | ||
exit 17800 | ||
} | ||
|
||
local 00 `0' | ||
|
||
* Time the entire function execution | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
*! version 1.0.2 08Aug2018 Mauricio Caceres Bravo, [email protected] | ||
*! version 1.0.3 18Aug2018 Mauricio Caceres Bravo, [email protected] | ||
*! Program for managing the gtools package installation | ||
|
||
capture program drop gtools | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
v 1.0.2 | ||
v 1.0.3 | ||
d | ||
d 'GTOOLS': Faster implementation of common Stata commands optimized for large datasets | ||
d | ||
|
@@ -45,7 +45,7 @@ d | |
d Author: Mauricio Caceres Bravo | ||
d Support: email [email protected] | ||
d | ||
d Distribution-Date: 20180808 | ||
d Distribution-Date: 20180818 | ||
d | ||
f _gtools_internal.ado | ||
f gcollapse.ado | ||
|
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
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
v 1.0.0 | ||
v 1.0.3 | ||
d Mauricio Caceres Bravo, [email protected] | ||
p 'GTOOLS': Generic stata repo that uses C plugins |
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
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
*! version 1.0.1 23Jul2018 Mauricio Caceres Bravo, [email protected] | ||
*! Encode varlist using Jenkin's 128-bit spookyhash via C plugins | ||
*! version 1.0.3 18Aug2018 Mauricio Caceres Bravo, [email protected] | ||
*! gtools function internals | ||
|
||
* rc 17000 | ||
* rc 17001 - no observations | ||
|
@@ -8,6 +8,7 @@ | |
* rc 17004 - strL variables could not be compressed | ||
* rc 17005 - strL contains binary data | ||
* rc 17006 - strL variables uknown error | ||
* rc 17800 - More than 2^31-1 obs | ||
* rc 17459 | ||
* rc 17900 | ||
* rc 17999 | ||
|
@@ -47,6 +48,17 @@ program _gtools_internal, rclass | |
exit 17001 | ||
} | ||
|
||
if ( `=_N > 2^31-1' ) { | ||
local nmax = trim("`: disp %21.0gc 2^31-1'") | ||
di as err `"too many observations"' | ||
di as err `""' | ||
di as err `"A Stata bug prevents gtools from working with more than `nmax' observations."' | ||
di as err `"See {browse "https://www.statalist.org/forums/forum/general-stata-discussion/general/1457637"}"' | ||
di as err `"and {browse "https://github.com/mcaceresb/stata-gtools/issues/43"}"' | ||
clean_all 17800 | ||
exit 17800 | ||
} | ||
|
||
local 00 `0' | ||
|
||
* Time the entire function execution | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
*! version 1.0.2 08Aug2018 Mauricio Caceres Bravo, [email protected] | ||
*! version 1.0.3 18Aug2018 Mauricio Caceres Bravo, [email protected] | ||
*! Program for managing the gtools package installation | ||
|
||
capture program drop gtools | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
v 1.0.2 | ||
v 1.0.3 | ||
d | ||
d 'GTOOLS': Faster implementation of common Stata commands optimized for large datasets | ||
d | ||
|
@@ -45,7 +45,7 @@ d | |
d Author: Mauricio Caceres Bravo | ||
d Support: email [email protected] | ||
d | ||
d Distribution-Date: 20180808 | ||
d Distribution-Date: 20180818 | ||
d | ||
f _gtools_internal.ado | ||
f gcollapse.ado | ||
|
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
v 1.0.0 | ||
v 1.0.3 | ||
d Mauricio Caceres Bravo, [email protected] | ||
p 'GTOOLS': Generic stata repo that uses C plugins |