Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex DataLens
  • Audit Trails events

ROUND with precision parameter is not supported for double precision data type in PostgreSQL

Written by
Yandex Cloud
Updated at March 28, 2023

ERR.DS_API.DB.INVALID_FUNCTION.PG_DOUBLE_PRECISION_ROUND

The ROUND function with the precision parameter isn't supported for the double precision type of the PostgreSQL data source.

DataLens recognizes the double precision and numeric types from PostgreSQL as a Fractional numbers. Out of these two types, the ROUND function with the precision parameter only accepts the numeric type. To cast double precision back to the database level, use DB_CAST.

Example:

ROUND(DB_CAST([your field]/1000000, 'numeric', 16, 8) [, precision ]), where 16 is the total count of digits in a fractional number, and 8 is the count of digits in its fractional part.

Was the article helpful?

© 2025 Direct Cursus Technology L.L.C.