apache / doris

Apache Doris is an easy-to-use, high performance and unified analytics database.
https://doris.apache.org
Apache License 2.0
11.87k stars 3.13k forks source link

[Feature] Support Hooks for metadata #6760

Open chaplinthink opened 2 years ago

chaplinthink commented 2 years ago

Search before asking

Description

Can Doris support the same features as Hive hooks.Users can implement hooks to deal with different ddl events.

For example:

HiveHook implements ExecuteWithHookContext

ExecuteWithHookContext is a new interface that the Pre/Post Execute Hook can run with the HookContext.

DDL events:

BaseHiveEvent
      ├── AlterTableRename
      ├── CreateHiveProcess
      ├── DropDatabase
      ├── DropTable
      ├── CreateDatabase
      │   └── AlterDatabase
      └── CreateTable
          └── AlterTable
              └── AlterTableRenameCol

Use case

Use cases:

Related issues

No response

Are you willing to submit PR?

Code of Conduct

morningman commented 2 years ago

That would be a good idea. But i'm familiar with HiveHook. If you or anyone interested in it, welcome to contribute!

chaplinthink commented 2 years ago

That would be a good idea. But i'm familiar with HiveHook. If you or anyone interested in it, welcome to contribute!

Ok, I'm learning about the design of doris and reading the source code. After I get familiar with it, I'm happy to do that.

francis-xjl commented 2 years ago

we want this.

stalary commented 2 years ago

I can try to implement it, please assign to me. @morningman

yians commented 1 year ago

is there any plan for this exciting feature?

smlHao commented 7 months ago

I can try to implement it, please assign to me. @morningman

@stalary Do you implement it ? I also want to the function ,Can you help me ?