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

Initscript errors are ignored

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0, 4.0.0-alpha-1
    • Beeline
    • None

    Description

      I've been running some queries for a while when I've noticed that my initscript has an error; and beeline stops interpreting the initscript after encountering the first error.

      echo 'invalid;' > init.sql
      echo 'select 1;' > s1.sql
      beeline -u jdbc:hive2://localhost:10000/ -n hive -i init.sql -f s1.sql 
      [...]
      Running init script init.sql
      0: jdbc:hive2://localhost:10000/> invalid;
      Error: Error while compiling statement: FAILED: ParseException line 1:0 cannot recognize input near 'invalid' '<EOF>' '<EOF>' (state=42000,code=40000)
      0: jdbc:hive2://localhost:10000/> select 1;
      [...]
      $ echo $?
      0
      

      Attachments

        1. HIVE-19048.1.patch
          2 kB
          Bharath Krishna
        2. HIVE-19048.2.patch
          2 kB
          Bharath Krishna

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bharos92 Bharath Krishna Assign to me
            kgyrtkirk Zoltan Haindrich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment