Browse Source

[impala] Close invalidate metadata statements when installing the examples

Romain Rigaux 10 years ago
parent
commit
17c786370b

+ 1 - 1
apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py

@@ -143,7 +143,7 @@ class SampleTable(object):
     try:
     try:
       # Already exists?
       # Already exists?
       if self.app_name == 'impala':
       if self.app_name == 'impala':
-        db.execute_statement('INVALIDATE METADATA %s;' % (self.name,))
+        db.invalidate_tables('default', [self.name])
       db.get_table('default', self.name)
       db.get_table('default', self.name)
       msg = _('Table "%(table)s" already exists.') % {'table': self.name}
       msg = _('Table "%(table)s" already exists.') % {'table': self.name}
       LOG.error(msg)
       LOG.error(msg)