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

Multi-character delimiter strings do not work correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Bug
    • 0.5.0
    • 0.14.0
    • None

    Description

      I was trying to give a demo using the movielens data set, which uses '::' as a delimiter (multiple characters). Using "FIELDS TERMINATED BY '::'" did not give an error, but it seems to just split on ':' rather than '::'.

      hive> create table ml_ratings (userid int, movieid int, rating int, unixtime string) row format delimited  fields terminated by '::' stored as textfile;
      ...
      hive> select * from ml_ratings limit 5;                                         OK                                                    
      1       NULL    122
      1       NULL    185
      

      Attachments

        Issue Links

          Activity

            People

              kjlinvill@gmail.com Kirby Linvill
              tlipcon Todd Lipcon
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: