Skip to content

MySQL function not implemented: TIMESTAMPADD #22956

@dengn

Description

@dengn

Function Information

Function Name: TIMESTAMPADD
Category: date

MySQL Function Description

MySQL TIMESTAMPADD function:
TIMESTAMPADD(unit, interval, datetime_expr) - Adds the integer expression interval to the date or datetime expression datetime_expr.

Expected Behavior

Expected behavior:
According to MySQL documentation, the function should return correct results.

Current Behavior in MatrixOne

This function is not implemented in MatrixOne.

Error Message: (20301, 'invalid input: column DAY does not exist')

Test Case

SELECT TIMESTAMPADD(DAY, 5, '2024-12-20') AS result1

MySQL Documentation

Request

Please implement the TIMESTAMPADD function to improve MySQL compatibility.

Metadata

Metadata

Assignees

Labels

ai-hardComplex, multi-step reasoning; advanced domain expertise needed.kind/compatibilityThe compatibility with mysql 8.0 should be discussed further.priority/p0Critical feature that should be implemented in this version

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions