RE: RE: Detecting write mode (append, overwrite) in custom storage handler

2022-04-30 Thread Julien Phalip
I realize this is in fact quite related to another thread that I recently started: https://lists.apache.org/thread/s0pzmgmq6trdjtxc50qwpww2dlzxql9b So this discussion could continue there. On 2022/04/30 04:08:27 Julien Phalip wrote: > I've noticed that the DefaultHiveMetaHook > < https://github.co

RE: Detecting write mode (append, overwrite) in custom storage handler

2022-04-29 Thread Julien Phalip
I've noticed that the DefaultHiveMetaHook class has a commitInsertTable(Table table, boolean overwrite) method. So perhaps this is the method tha

Detecting write mode (append, overwrite) in custom storage handler

2022-04-29 Thread Julien Phalip
Hi, I'm working on a custom storage handler and am wondering if there's a way to detect the appropriate write mode for the output table. For example, an "INSERT" statement is expected to append rows to the table, whereas an "INSERT OVERWRITE" statement should first clear the table before adding ne