Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2022 10:02 AM
When i run the below query in databricks sql the Precision and scale of the decimal column is getting changed.
Select typeof(COALESCE(Cast(3.45 as decimal(15,6)),0));
o/p: decimal(16,6)
expected o/p: decimal(15,6)
Any reason why the Precision and scale is getting changed?
Labels:
- Labels:
-
Change
-
Dataframe
-
DecimalDataType