microsoft / DacFx

DacFx, SqlPackage, and other SQL development libraries enable declarative database development and database portability across SQL versions and environments. Share feedback here on dacpacs, bacpacs, and SQL projects.
https://aka.ms/sqlpackage-ref
MIT License
356 stars 20 forks source link

partitioned Tables of BIT datatype are rebuilding without reason #458

Closed ssreerama closed 2 months ago

ssreerama commented 5 months ago

Steps to Reproduce:

  1. Create a sqlproject with partition function of BIT data type as below, and add few partitioned tables CREATE PARTITION FUNCTION pfIsValid_0 (bit) AS RANGE LEFT FOR VALUES ( Convert(bit, 0), Convert(bit, 1))
  2. Publish the project.
  3. Re-publish the project and observe all the tables are getting rebuild.

Did this occur in prior versions? If not - which version(s) did it work in?

(DacFx/SqlPackage/SSMS/Azure Data Studio)