HUE-8816 [catalog] Support parsing columns with varchar type

Review Request #13878 - Created April 22, 2019 and submitted

Romain Rigaux
hue
master
HUE-8816
hue
jgauthier, johan, ranade, romain, weixia, yingc
commit e3797415947914a043126e6bd78646e87691fb7b
Author: Romain <romain.rigaux@gmail.com>
Date:   Mon Apr 22 13:43:57 2019 -0700

    HUE-8816 [catalog] Support parsing columns with varchar type

:100644 100644 af17fbbb76 6c607fd0e4 M	apps/metastore/src/metastore/parser.py
:100644 100644 63cfc2ae0f 442f5936d2 M	apps/metastore/src/metastore/tests.py

Added test that passes afterwards

======================================================================
ERROR: metastore.tests.TestParser.test_parse_varchar


Traceback (most recent call last):
File "/home/romain/projects/hue/build/env/local/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/romain/projects/hue/apps/metastore/src/metastore/tests.py", line 478, in test_parse_varchar
parse_tree = parser.parse_column(name, type, comment)
File "/home/romain/projects/hue/apps/metastore/src/metastore/parser.py", line 39, in parse_column
simple_type, inner = _parse_type(type_string)
File "/home/romain/projects/hue/apps/metastore/src/metastore/parser.py", line 56, in _parse_type
return match.group(1), match.group(3)
AttributeError: 'NoneType' object has no attribute 'group'


Ran 8 tests in 0.002s

FAILED (errors=1)

  1. Ship It!
  2. 
      
Review request changed

Status: Closed (submitted)

Loading...