Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-13401

Flink SQL sqlUpdate sql where complex conditional expressions do not take effect

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 1.6.3, 1.7.2
    • 1.9.0
    • Table SQL / API
    • None

    Description

      flink execute sql :

       

      select
      count(ad_action) as cnt
      from
      ad_sdk_android
      where
      ad_position_id = '100055'
      and ad_action = 'click'
      and (event_type IS NULL OR event_type <> '2'AND event_type <> '10')
      

      the result is 20, but in mysql and hive, this result is 17.

       

      The key condition is :

       

      and (event_type IS NULL OR event_type <> '2'AND event_type <> '10')

      and event_type is varchar, flink is string data type.

       

      mysql has the key condition sql result is:

      mysql no the key condition sql result is:

       

       

       

      Attachments

        1. image-2019-07-24-16-40-36-070.png
          120 kB
          pingle wang
        2. image-2019-07-24-16-45-20-682.png
          123 kB
          pingle wang
        3. image-2019-07-24-17-00-36-079.png
          253 kB
          pingle wang

        Activity

          People

            Unassigned Unassigned
            ambition119 pingle wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: