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

JDBC adapter should generate TABLESAMPLE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.36.0
    • None

    Description

      Currently in the RelToSqlConverter class, there is no visit method to handle the Sample RelNode.If a SQL plan has Sample RelNode, RelToSqlConverter will throw a AssertionError like this:

       java.lang.AssertionError: Need to implement org.apache.calcite.rel.core.Sample
      

      This will cause the Sample RelNode plan to fail to translate to the corresponding dialect.

      Attachments

        1. image-2023-08-08-20-16-27-188.png
          96 kB
          LakeShen
        2. image-2023-08-08-20-19-01-269.png
          140 kB
          LakeShen

        Issue Links

          Activity

            People

              shenlang LakeShen
              shenlang LakeShen
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: