Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-4344

CREATE VIEW fails when redundant casts are rewritten

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.11.0
    • 0.12.0
    • Query Processor
    • None

    Description

      e.g. create view v as select cast(key as string) from src;

      The rewriter tries to replace both cast(key as string) and key as `src`.`key`, because cast(key as string) is a no-op.

      There may be other cases like this one.

      See HIVE-2439 for context.

      Attachments

        Issue Links

          Activity

            People

              sxyuan Samuel Yuan
              sxyuan Samuel Yuan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: