matrixorigin / matrixorigin/matrixone

[Feature Request]: Support creating `trigger`

Open
#18,702 0 comments 0 reactions 1 assignee Assigned to @fengttt View on GitHub
area/compatibility kind/feature long-term-job priority/p0
Dominant language
Go
Stars
1.9k
Forks
311
Avg merge
1d 3h
Merged PRs (30d)
768

Description

### Is there an existing issue for the same feature request?

- [X] I have checked the existing issues.

### Is your feature request related to a problem?

```Markdown
Want to support `Trigger` that is supported by MwSQL
```

### Describe the feature you'd like

The following SQL fails:
```
CREATE TRIGGER instance_operation_prevent_delete_before_delete
BEFORE DELETE ON meta.instance_operation
FOR EACH ROW
BEGIN
SIGNAL SQLSTATE '45000'
SET MESSAGE_TEXT = 'DELETE xxx is not allowed on this table';
END;
```

### Describe implementation you've considered

_No response_

### Documentation, Adoption, Use Case, Migration Strategy

_No response_

### Additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.