From user-zh-return-1795-archive-asf-public=cust-asf.ponee.io@flink.apache.org Thu Dec 26 06:21:01 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id E71BB180636 for ; Thu, 26 Dec 2019 07:21:00 +0100 (CET) Received: (qmail 16280 invoked by uid 500); 26 Dec 2019 06:20:56 -0000 Mailing-List: contact user-zh-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-zh@flink.apache.org Delivered-To: mailing list user-zh@flink.apache.org Received: (qmail 16184 invoked by uid 99); 26 Dec 2019 06:20:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Dec 2019 06:20:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 98C851A3318; Thu, 26 Dec 2019 06:20:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id UzV7b5rdQvYx; Thu, 26 Dec 2019 06:20:50 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::f34; helo=mail-qv1-xf34.google.com; envelope-from=imjark@gmail.com; receiver= Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 256327DDED; Thu, 26 Dec 2019 06:20:50 +0000 (UTC) Received: by mail-qv1-xf34.google.com with SMTP id n8so8757729qvg.11; Wed, 25 Dec 2019 22:20:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=opLSHDv7bTq9dlzeGP6cbKkSrAR17nkXJygD6rF+yOg=; b=Dz4jCBhi/+fE1zQhJTSEcF3VPZhNHn8TRVtLQ2jLQiwOsL42J5Yc9Y1llDTmpGvvy5 OYoRr3DO4RFCUs27MUcUTqQVWBlXgj0BOOag1dsgO/HkqdymvlWLLwp5r2FtMXaxCTX4 FutHV1ZRVh2i2fSVOHh3ITAtg1roehB1lP2ip8M5FszZoB+19sRWoj70c59L40OE9Mp6 PmffoWiYpOZVZkhsPR+zOFKImYaXcnBCL1NGEuYqmc3ZdH/KDTw6i42k9QLA76mMPF8W x54iEqIVjVrPCPjjmdTPXWpeb2U+ckyUvXQgoL0IPaWIPr69AsALtE1JO+oSd98fIqi1 nwGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=opLSHDv7bTq9dlzeGP6cbKkSrAR17nkXJygD6rF+yOg=; b=PM+O7a59lOeViAN3ImeGFQWfuYzuF2daGs6wjKp/JAc58YCGFZ5PStOlTF7HKKQbTj 07OSMJnQci4o1DKm/lcN6jPPGDjvG6gLmbV5pCIB4EpTPFmiOx5xZFh1cbOjtiFHm4RH MODgPPxpmk63eB7SwkpqKqPeRfvMSd2qJSw3nWtnLUWIfK3tTcwbEGMauNEr8SlfcmmU kWa24Pe2toPMwYosF33xXnkCan3ZNE2FdP2RsmYNwD/5a04Bvk+tlOuknKoprtkU3ux8 W4stNeP2YYO733FxoNCbdRh8s+/QvU3park23wwokXxpBHA14QP02FGrzDr7BCodbccc BvpQ== X-Gm-Message-State: APjAAAWORWp5OXJgrSzYOdxSXFRR1CzHytd2m5hZ5KL1k8CAJmNhWVbr mERw+hPa0F54tvOa93blhj3NixvoDK8GvyAOwyc= X-Google-Smtp-Source: APXvYqyyMWUWqb/8Z2wKTlteR6lFRyilSVHoSq//6+jbr9yZWSWoc8NE+S4CAB3CnDKThhse37M+TNgLjXWBvb/YyWg= X-Received: by 2002:a05:6214:6f0:: with SMTP id bk16mr35126519qvb.23.1577341249025; Wed, 25 Dec 2019 22:20:49 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jark Wu Date: Thu, 26 Dec 2019 14:20:38 +0800 Message-ID: Subject: =?UTF-8?Q?Re=3A_Flink_1=2E9_SQL_Kafka_Connector=EF=BC=8CJson_format=EF=BC=8Cho?= =?UTF-8?Q?w_to_deal_with_not_json_message=3F?= To: LakeShen Cc: user-zh , dev , user Content-Type: multipart/alternative; boundary="000000000000d67d25059a956085" --000000000000d67d25059a956085 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi LakeShen, I'm sorry there is no such configuration for json format currently. I think it makes sense to add such configuration like 'format.ignore-parse-errors' in csv format. I created FLINK-15396[1] to track this. Best, Jark [1]: https://issues.apache.org/jira/browse/FLINK-15396 On Thu, 26 Dec 2019 at 11:44, LakeShen wrote: > Hi community,when I write the flink ddl sql like this: > > CREATE TABLE kafka_src ( > id varchar, > a varchar, > b TIMESTAMP, > c TIMESTAMP > ) > with ( > ... > 'format.type' =3D 'json', > 'format.property-version' =3D '1', > 'format.derive-schema' =3D 'true', > 'update-mode' =3D 'append' > ); > > If the message is not the json format ,there is a error in the log=E3=80= =82 > My question is that how to deal with the message which it not json format= ? > My thought is that I can catch the exception > in JsonRowDeserializationSchema deserialize() method,is there any > parameters to do this? > Thanks your replay. > > --000000000000d67d25059a956085--