Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5227

Janino upgrade breaks SELECTs with many projects causing JVM crashes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 1.30.0
    • None
    • None

    Description

      In our case we have SELECTs with > 1000 project fields. You might say this is a bit crazy but this is how our data model looks like

      We recently upgraded to Calcite 1.30 and noticed JVM crashes for such SELECTs.

      After thorough analysis we found that the byte code produced by newer Janino versions is 350 times larger compared to the byte code produced by javac.

      I created a unit test to reproduce the issue in Calcite code base: https://github.com/apache/calcite/commit/f4d4815dff5537c56b34b36794c71d7a9829eec6

      The Janino issue is tracked here: https://github.com/janino-compiler/janino/issues/174

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gloeckner.daniel@googlemail.com Daniel Glöckner
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m