Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ebjim
Helper IV
Helper IV

Importing smallint column from SQL Server

I use a dataflow gen2 to import a table from SQL Server and there is a smallint column (let's call it StatusID) that shows up automatically in the dataflow UI as 'Whole Number', which makes sense. I create a new lakehouse table with the dataflow and now I have a StatusID column that shows up as '12S StatusID' in the lakehouse explorer. 

 

There are only a few distinct values in the StatusID column, -1, 0 and 1. As I populate the table in the lakehouse, I noticed a discrepancy when I verify data in the SQL endpoint: 

 

select count(StatusID), StatusID from dbo.table1 where StatusID = 1 group by StatusID

select count(*) from dbo.table1 where StatusID = 1 

 

Both queries are supposed to return the same number but they don't. Some records are not included in the count of the second query. Additionally, when using this column in a Power BI report, the distinct values are -1, 0, 1 and 65535.

 

This is the workaround I used: in the dataflow UI, change the StatusID data type from 'Whole Number' to...'Whole Number'.  What I want to do is to set StatusID explicitly to Int64.Type in Power Query and use the dataflow to create another new lakehouse table. This time, StatusID shows up as '12L StatusID' in the lakehouse explorer and both queries show the same result. 

 

What is going on here? Something is not right. Smallint is supported in Fabric and '12S' shouldn't cause counting discrepancies.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ebjim 
Thanks for using Fabric Community.
Apologies for the issue you have been facing. This looks like a bug and we have raised a bug for the same. The internal team is looking into it and will fix this. I will keep you updated regarding this.
Appreciate your patience. Please let me know if you have any further questions.
Thanks

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @ebjim 
Thanks for using Fabric Community.
Apologies for the issue you have been facing. This looks like a bug and we have raised a bug for the same. The internal team is looking into it and will fix this. I will keep you updated regarding this.
Appreciate your patience. Please let me know if you have any further questions.
Thanks

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

Top Solution Authors
Top Kudoed Authors