Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-12251 Rework the Table API & SQL type system
  3. FLINK-24599

Make checking for type root and family less verbose

    XMLWordPrintableJSON

Details

    Description

      Currently, we use `LogicalTypeChecks.hasRoot()` and `LogicalTypeChecks.hasFamily()` for frequent checking of logical types. It was a conscious decision to not overload `LogicalType` with utility methods in the beginning. But the two mentioned methods would be nice to have available in `LogicalType` directly.

      We suggest:

      LogicalType#is(LogicalTypeRoot)
      LogicalType#is(LogicalTypeFamily)
      

      Attachments

        Issue Links

          Activity

            People

              matriv Marios Trivyzas
              twalthr Timo Walther
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: