TimonKK / clickhouse

NodeJS client for ClickHouse
Apache License 2.0
221 stars 87 forks source link

config receive_timeout and send_timeout not work #146

Open gclinux opened 1 year ago

gclinux commented 1 year ago
the sql:
`INSERT INTO penta.fast_report SELECT * FROM remote('${formClickhouse.host}', test,test, '${formClickhouse.basicAuth.username}', '${formClickhouse.basicAuth.password}') WHERE start_time<1667836800 AND start_time >1667232000`

I need to change config user.xml to make sure the remote not timeout

800 800

config:

{
       url: 'http://127.0.0.1',
    port: 8123,
    debug: true,
    basicAuth:  {
        username: 'default',
        password: '2222',
    },
    isUseGzip: true,
    trimQuery: false,
    usePost: false,
    format: "json", // "json" || "csv" || "tsv"
    raw: false,
    config:{
        **receive_timeout:800,**
        send_timeout:800,
        session_timeout:100,
    }
}

it still is 50ms not work