소스 검색

[impala] Close invalidate metadata statements when installing the examples

Romain Rigaux 10 년 전
부모
커밋
17c7863
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py

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

@@ -143,7 +143,7 @@ class SampleTable(object):
     try:
       # Already exists?
       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)
       msg = _('Table "%(table)s" already exists.') % {'table': self.name}
       LOG.error(msg)