Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-49398

Cache Table with Parameter markers returns wrong error

    XMLWordPrintableJSON

Details

    Description

      When investigating the OSS structure of code it was found that `CacheTableAsSelect` when used with parameter markers in the select part of the query fails with `UNBOUND_SQL_PARAMETER` even though logically it should fail with `UNSUPPORTED_FEATURE.PARAMETER_MARKER_IN_UNEXPECTED_STATEMENT`. The reason for the second error is that `CacheTableAsSelect` creates a temporary view which should follow rules for parameter markers as views does.

      Attachments

        Issue Links

          Activity

            People

              mikhailnik Mikhail Nikoliukin
              mihailo.milosevic Mihailo Milosevic
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: