Skip to content

SQL: tracker for missing scalar functions #30007

@elasticmachine

Description

@elasticmachine

Original comment by @costin:

This is a meta-issue for tracking the various missing functions missing according to SQL/ODBC/JDBC spec.

To keep things in sync across server and client, let's use the ODBC spec

The vast majority are implemented - are missing methods with two arguments and truncation, namely:

  • ATAN2
  • COT
  • MOD
  • POWER
  • ROUND( numeric_exp, integer_exp)
  • SIGN
  • TRUNCATE
  • System
    Outside IfNull, the rest are straight-forward.
  • DATABASE
  • IFNULL
  • USER

EXTRACT & co are implemented; date math, interval, current and name are missing:

  • CURRENT_DATE( )
  • CURRENT_TIME[( time-precision )]
  • CURRENT_TIMESTAMP
  • CURDATE()
  • CURTIME()
  • DAYNAME( date_exp )
  • MONTHNAME( date_exp )
  • NOW( )
  • QUARTER( )
  • TIMESTAMPADD
  • TIMESTAMPDIFF

The time math depends on LINK REDACTED .

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions