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
When you have a table with an autoincrement (or identity -- which is basically a synonym) column, it is like a Default value clause, but that is not indicated anywhere on the Default value for the column.
create or replaceTABLESTRATEGY (
STRATEGY_ID NUMBER(38,0) NOT NULL autoincrement start 1000 increment 1 COMMENT 'Unique internal key for strategy.',
...
constraint PK_STRATEGY primary key (STRATEGY_ID),
);
What you expected to happened
It would be nice to see some indication that the Default is an autoincrement, rather than a blank:
Anything else we need to know?
If I use a DEFAULT sequence_name.NEXTVAL, then that would show as the default. However, the autoincrement is preferred because it does not change between Continuous Integration runs. (Each Continuous Integration run creates a unique clone to test database changes.)
Environment
Running docker://ghcr.io/k1low/tbls from a GitHub Actions workflow, using ubuntu-latest, and pointing to a Snowflake database.
The text was updated successfully, but these errors were encountered:
Understood if you think auto increment is not the same as Default. However, the core issue is that the autoincrement information is lost or unavailable for the Snowflake output. I don't see an "Extra Definition" column for Snowflake.
awhitford-cip
changed the title
Snowflake Autoincrement (or Identity) does not appear in Default
Snowflake Autoincrement (or Identity) does not appear in Table page
Apr 25, 2022
I don't see an "Extra Definition" column for Snowflake.
As you say, Snowflake support is experimental and may be limited compared to other data sources ( Snowflake will remain experimental because it is not possible to build my local environment. ).
If you are able to resolve this, I would encourage you to send a pull request 👍
What happened
When you have a table with an autoincrement (or identity -- which is basically a synonym) column, it is like a Default value clause, but that is not indicated anywhere on the Default value for the column.
What you expected to happened
It would be nice to see some indication that the Default is an autoincrement, rather than a blank:
Anything else we need to know?
If I use a
DEFAULT sequence_name.NEXTVAL
, then that would show as the default. However, theautoincrement
is preferred because it does not change between Continuous Integration runs. (Each Continuous Integration run creates a unique clone to test database changes.)Environment
docker://ghcr.io/k1low/tbls
from a GitHub Actions workflow, usingubuntu-latest
, and pointing to a Snowflake database.The text was updated successfully, but these errors were encountered: