You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enforce a timezone-aware datetime axis by default.
Pipes now enforce timezone-naive datetimes as UTC, even if the underlying column type is timezone-naive. To use datetime-naive datetime axes, you must explicitly set the dtype to datetime64[ns].
Designate the index name primary for primary keys.
Like the datetime index, the primary index is used for joins and will be created as the primary key in new tables.
Add autoincrement to Pipe.parameters
Like upsert, you may designate an incremental integer primary key by setting autoincrement to True in the pipe parameters. Note that autoincrement will be True if you specify a primary index but do not specify a dtype or pass into the initial dataframe. This is only available for sql pipes.
Add option static to Pipe.parameters to disable schema modification.
Set static to True in a pipe's parameters to prevent any modification of the column's data types.
Add get_create_table_queries() to build from dtypes dictionaries.
You may get a CREATE TABLE query from a dtypes dictionary (in addition to a SELECT query). The function meerschaum.utils.sql.get_create_table_query() now also accepts an arguments primary_key and autoincrement to designate a primary key column.
Create a multi-column index for columns defined in Pipe.columns.
To disable this behavior, set unique to None in Pipe.indices.
Default to BIT for boolean columns in MSSQL.
The previous workaround was to store bool columns as INT. This change now defaults to BIT when creating new tables. Boolean columns cannot be nullable for MSSQL.
Improve file protection in edit config.
Writing an invalid config file will now stop you before committing the changes. The previous behavior would lead to data loss.
Catch exceptions when creating chunk labels.
If a datetime bound cannot be determined for a chunk, return pd.NA.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
v2.6.0
Enforce a timezone-aware
datetimeaxis by default.Pipes now enforce timezone-naive datetimes as UTC, even if the underlying column type is timezone-naive. To use datetime-naive datetime axes, you must explicitly set the
dtypetodatetime64[ns].Designate the index name
primaryfor primary keys.Like the
datetimeindex, theprimaryindex is used for joins and will be created as the primary key in new tables.Add
autoincrementtoPipe.parametersLike
upsert, you may designate an incremental integer primary key by settingautoincrementtoTruein the pipe parameters. Note thatautoincrementwill beTrueif you specify aprimaryindex but do not specify a dtype or pass into the initial dataframe. This is only available forsqlpipes.Add option
statictoPipe.parametersto disable schema modification.Set
statictoTruein a pipe's parameters to prevent any modification of the column's data types.Add
get_create_table_queries()to build fromdtypesdictionaries.You may get a
CREATE TABLEquery from adtypesdictionary (in addition to aSELECTquery). The functionmeerschaum.utils.sql.get_create_table_query()now also accepts an argumentsprimary_keyandautoincrementto designate a primary key column.Create a multi-column index for columns defined in
Pipe.columns.To disable this behavior, set
uniquetoNoneinPipe.indices.Default to
BITfor boolean columns in MSSQL.The previous workaround was to store
boolcolumns asINT. This change now defaults toBITwhen creating new tables. Boolean columns cannot be nullable for MSSQL.Improve file protection in
edit config.Writing an invalid config file will now stop you before committing the changes. The previous behavior would lead to data loss.
Catch exceptions when creating chunk labels.
If a datetime bound cannot be determined for a chunk, return
pd.NA.This discussion was created from the release ⚡️ v2.6.0 Enforce UTC datetimes, add primary index and autoincrement..
Beta Was this translation helpful? Give feedback.
All reactions