Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-278

Allow no alias in Dot schema definition in Dot LogicalPlanLoader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.1.0
    • None
    • None
    • Patch Available

    Description

      Our schema parser doesn't allow "null" alias but we have to be able to do that in Dot test files.
      This is a work around by introducing "[NoAlias]" keyword in schema definition just for Dot LogicalPlanLoader.

      Sample:-

      foreach [  key="20", type="LOForEach" , schema="[NoAlias] : long, [NoAlias] : byteArray"    ] ;
      

      At runtime, [NoAlias] will be substituted by dummy column names before being sent to the parser. Subsequently those names will be replaced by "null". There is no changes in the actual query parser.

      Attachments

        1. AllowNoAliasSchemaInDot.patch
          10 kB
          Pi Song
        2. AllowNoAliasSchemaInDot2.patch
          10 kB
          Pi Song

        Activity

          People

            pi_song Pi Song
            pi_song Pi Song
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: