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
We have tables partitioned by scheme that I've understood they'll be supported by atlas in feature releases and for some of those partitioned by scheme tables, there is no Primary key created. Hence there is a default heap entry in sys.indexes that has the name NULL.
Due to this, at atlas schema inspect, "Error: mssql: sql: Scan error on column index 2, name "index_name": converting NULL to string is unsupported" is returned. When I create myself the PK on the table, the error is no more encountered.
When the migration is done with flyway, the error is not encountered from the default heap entry in sys.indexes.
Is there any solution for this ?
Many Thanks.
The text was updated successfully, but these errors were encountered:
CREATE TABLE [test].[exec_log](
[partition_key] [int] NOT NULL,
[host_name] nvarchar NOT NULL,
[error_msg] nvarchar NOT NULL
) ON psLog -- psLog is the partition scheme
GO
`CREATE PARTITION FUNCTION pfLog AS RANGE RIGHT FOR VALUES (20220101, 99999999)
GO
CREATE PARTITION SCHEME [psLog] AS PARTITION [pfLog] TO ([PRIMARY], [PRIMARY], [PRIMARY], [PRIMARY])
GO
CREATE TABLE [test].[exec_log](
[partition_key] [int] NOT NULL,
[host_name] nvarchar NOT NULL,
[error_msg] nvarchar NOT NULL
) ON psLog
GO `
Hello. It's not only this tables, we have more tables like this and we want their definition to be in the generated schema.sql via inspect in order to execute the script on other databases and for the moment we can exclude the partition schemes until they will be supported but we cannot exclude the tables themselves.
Hello,
We have tables partitioned by scheme that I've understood they'll be supported by atlas in feature releases and for some of those partitioned by scheme tables, there is no Primary key created. Hence there is a default heap entry in sys.indexes that has the name NULL.
Due to this, at atlas schema inspect, "Error: mssql: sql: Scan error on column index 2, name "index_name": converting NULL to string is unsupported" is returned. When I create myself the PK on the table, the error is no more encountered.
When the migration is done with flyway, the error is not encountered from the default heap entry in sys.indexes.
Is there any solution for this ?
Many Thanks.
The text was updated successfully, but these errors were encountered: