Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-6567

ExpressionEvaluators numeric types conversion support

    XMLWordPrintableJSON

Details

    Description

      Example:

      table tbl (a: bigint)

       
      data skipping work only if both types are the same. If we use

      select * from tbl where a > 10

      data skipping will not work, we have to use explicit cast:

      select * from tbl where a > cast(10 as bigint)

       
      Problem may be solved converting all numeric types to BigDecimal (without information lose):

      by 20 lines of source code, without necessity of adding new rule or filter in flink engine (which can support more complex types conversion, such as string -> integer, but i think there is no need in such conversions)

       

      Attachments

        1. types_conversion.png
          14 kB
          Mark Bukhner

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alowator Mark Bukhner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: