79565555

Date: 2025-04-10 01:03:38
Score: 1.5
Natty:
Report link

Might be a bit late but here is more formal solution

This is documented here

https://learn.microsoft.com/en-us/azure/cosmos-db/analytical-store-introduction#representation-challenges-workarounds

SELECT CAST (num as float) as num
FROM OPENROWSET( 
       PROVIDER = 'CosmosDB',
       CONNECTION = 'Account=<account-name>;Database=<database-name>;Region=<region-name>',
       OBJECT = '<container-name>',
       [ CREDENTIAL | SERVER_CREDENTIAL ] = '<credential-name>'
) 
WITH (num varchar(100)) AS [IntToFloat]

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bakhrom T