You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "gaoxingliang (via GitHub)" <gi...@apache.org> on 2023/01/29 03:25:53 UTC

[GitHub] [apisix] gaoxingliang commented on issue #8734: bug: Fail to ingest logs to clickhouse because of DB::ParsingException

gaoxingliang commented on issue #8734:
URL: https://github.com/apache/apisix/issues/8734#issuecomment-1407550056

   I found the string is the xxxlatency string(it truncated the end of the string) it should be a double instead of int32. 
   ```
   create table api_log (
     upstream String,
     start_time DateTime64(3, 'Asia/Shanghai'),
     client_ip String,
     service_id String,
     route_id String,
     request JSON,
     response JSON,
     server JSON,
     latency Float64,
     upstream_latency Float64,
     apisix_latency Float64 
   )
   ENGINE = MergeTree()
   PARTITION BY toYYYYMM(start_time)
   ORDER BY (start_time, route_id)
   ```
   Using above table, it's working now.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org