You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "mzz (Jira)" <ji...@apache.org> on 2020/07/21 02:09:00 UTC

[jira] [Closed] (FLINK-18443) The operator name select: (ip, ts, count, environment.access AS access, environment.brand AS brand, sid, params.adid AS adid, eventid) exceeded the 80 characters length limit and was truncated

     [ https://issues.apache.org/jira/browse/FLINK-18443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

mzz closed FLINK-18443.
-----------------------
    Fix Version/s: 1.10.0
       Resolution: Fixed

> The operator name select: (ip, ts, count, environment.access AS access, environment.brand AS brand, sid, params.adid AS adid, eventid) exceeded the 80 characters length limit and was truncated
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-18443
>                 URL: https://issues.apache.org/jira/browse/FLINK-18443
>             Project: Flink
>          Issue Type: Bug
>          Components: API / DataStream
>    Affects Versions: 1.9.0
>            Reporter: mzz
>            Priority: Major
>             Fix For: 1.10.0
>
>
> *Schema:*
> {code:java}
> .withSchema(new Schema()
>  .field("ip", Types.STRING())
>  .field("ts", Types.STRING())
>  .field("procTime", Types.SQL_TIMESTAMP).proctime()
>  .field("environment", schemaEnvironment)
>  .field("advs", ObjectArrayTypeInfo.getInfoFor(new Array[Row](0).getClass, 
>   Types.ROW(Array("count","sid", "eventid","params"), 
>   Array[TypeInformation[_]](Types.STRING(),Types.STRING(), 
>   Types.STRING(),Types.ROW(Array("adid","adtype","ecpm"),Array[TypeInformation[_]] (Types.STRING(),Types.STRING(),Types.STRING()))))))
> )
> {code}
> *when execute this sql*:
> {code:java}
> val sql =
>       """
>         |SELECT
>         |ip,
>         |ts,
>         |params.ad,
>         |params.adtype,
>         |eventid,
>         |procTime
>         |FROM aggs_test
>         |CROSS JOIN UNNEST(advs) AS t (`count`,sid, eventid,params)
>         |""".stripMargin
> {code}
> *I got a warning,and the console keeps brushing this warning,no normal printout*
> {code:java}
> 09:38:38,694 WARN  org.apache.flink.metrics.MetricGroup                          - The operator name correlate: table(explode($cor0.advs)), select: ip, ts, procTime, advs, sid, eventid, params exceeded the 80 characters length limit and was truncated.
> {code}
> *But after I change it to this way, although I occasionally brush this Warn, it can be output normally。I change the 'params' type from Types.ROW to Types.STRING*。
> {code:java}
>  .field("advs", ObjectArrayTypeInfo.getInfoFor(new Array[Row](0).getClass, Types.ROW(Array("count", "sid", "eventid", "params"),
>           Array[TypeInformation[_]](Types.STRING(), Types.STRING(), Types.STRING(), Types.STRING()))))
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)