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

Missing break in SemanticAnalyzer#getTableDescFromSerDe()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.14.0
    • None
    • None

    Description

              case HiveParser.TOK_TABLEROWFORMATLINES:
                String lineDelim = unescapeSQLString(rowChild.getChild(0).getText());
                tblDesc.getProperties().setProperty(serdeConstants.LINE_DELIM, lineDelim);
                if (!lineDelim.equals("\n") && !lineDelim.equals("10")) {
                  throw new SemanticException(generateErrorMessage(rowChild,
                      ErrorMsg.LINES_TERMINATED_BY_NON_NEWLINE.getMsg()));
                }
              case HiveParser.TOK_TABLEROWFORMATNULL:
                String nullFormat = unescapeSQLString(rowChild.getChild(0).getText());
      

      break seems to be missing for TOK_TABLEROWFORMATLINES case.

      Attachments

        1. HIVE-7419.1.patch.txt
          0.8 kB
          Navis Ryu

        Activity

          People

            navis Navis Ryu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: