public void createPipe(CreatePipeStmt stmt) throws DdlException {
        try {
            lock.writeLock().lock();
            Pair<Long, String> dbIdAndName = resolvePipeNameUnlock(stmt.getPipeName());
            boolean existed = nameToId.containsKey(dbIdAndName);
            if (existed) {
                if (!stmt.isIfNotExists() && !stmt.isReplace()) {
                    ErrorReport.reportSemanticException(ErrorCode.ERR_PIPE_EXISTS);
                }
                if (stmt.isIfNotExists()) {
                    return;
                } else if (stmt.isReplace()) {
                    LOG.info("Pipe {} already exist, replace it with a new one", stmt.getPipeName());
                    Pipe pipe = pipeMap.get(nameToId.get(dbIdAndName));
                    dropPipeImpl(pipe);
                }
            }

            // Add pipe
            long id = GlobalStateMgr.getCurrentState().getNextId();
            Pipe pipe = Pipe.fromStatement(id, stmt);
            putPipe(pipe);

            repo.addPipe(pipe);
        } finally {
            lock.writeLock().unlock();
        }

    }
@Test
    public void testProperty() throws Exception {
        createPipe("create pipe p_batch_size properties('batch_size'='10GB') " +
                " as insert into tbl1 select * from files('path'='fake://pipe', 'format'='parquet')");
        createPipe("create pipe p_batch_files properties('batch_files'='100') " +
                " as insert into tbl1 select * from files('path'='fake://pipe', 'format'='parquet')");
        createPipe("create pipe p_poll_interval properties('poll_interval'='100') " +
                " as insert into tbl1 select * from files('path'='fake://pipe', 'format'='parquet')");
        createPipe("create pipe p_auto_ingest properties('auto_ingest'='false') " +
                " as insert into tbl1 select * from files('path'='fake://pipe', 'format'='parquet')");
    }