← Winnitude! Search  ·  Reader Mode (1294 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 8 LINKS

Support CAST clause · Issue #9 · JavaScriptor/js-sql-parser

Repository navigation

Support CAST clause  #9


New issue

New issue

Open

Open
Support CAST clause #9 Labels
enhancement

Description

@DragonFly666's profile DragonFly666 opened on Mar 6, 2018

code


select
concat(dsw_cluster_name,',',logic_pod_name) as event_obj,
concat(dsw_cluster_name,',',logic_pod_name, ' PFC STORM. 详情: ',
'流量突跃 ', cast(FLOW_RX_BPS_RATE 100 as int), '%(RX)',
'; ', cast(FLOW_TX_BPS_RATE
100 as int), '%(TX)',
'; PFC 突增 ', cast(PFC_RX_PPS_RATE*100 as int), '%(RECV)') as brief
from SOURCE_BASIC_EVENT_POD_FLOW_AND_PFC_TREND
where win_end >= '${yyyy-MM-dd HH:mm:ss - 2m}'
and win_end < '${yyyy-MM-dd HH:mm:ss}'
and PFC_RX_PPS_RATE >= 100
and (FLOW_RX_BPS_RATE <= -0.2 and FLOW_TX_BPS_RATE <= -0.2)

error like this
{message: "Parse error on line 4:↵...LOW_RX_BPS_RATE*100 as i...,', ')', 'AND', '&&', '||', 'OR', 'XOR', got 'AS'", hash: {...}}

Metadata

Metadata

Assignees

No one assigned

    Labels


    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions