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

Initscript errors are ignored

    XMLWordPrintableJSON

Details

    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.2.patch
          2 kB
          Bharath Krishna
        2. HIVE-19048.1.patch
          2 kB
          Bharath Krishna

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: