[beeswax] Truncate column size to 5000 if too large

Review Request #13987 - Created May 31, 2019 and submitted

Ying Chen
hue
master
HUE-8860
hue
jgauthier, johan, romain, weixia
commit 33f612ec195e5864420bb41cb55d943e2df42865 (HEAD -> master)
Author: Chris Conner <cconner@cloudera.com>
Date:   Fri May 31 13:45:51 2019 -0700

    [beeswax] Truncate column size to 5000 if too large

:100644 100644 0245e5fb50... 48c0a7db73... M    apps/beeswax/src/beeswax/server/hive_server2_lib.py


  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
  1. Note: ideally we would also send a 'isTruncated' flag back, so that we could warn in the UI but this is fair for now

  2. nit: 
    
    #1 bit clearer?
    
    end_cols_index = 5000
    log.WARN('Warning while get end column index --> Could not guess end column index, so defaulting to %s: %s' (end_cols_index, e))
    
    
    #2
    Might be the proper exception:
    
    except ValueError as e:
    1. Also, during test got another TypeError in line 1097: 'str' is not callable.

  3. 
      
Review request changed

Status: Closed (submitted)

Loading...