소스 검색

HUE-4908 [editor] Add metadata flag when the table supports updates

Like Kudu.
support_updates=true in the table autocomplete.
Romain Rigaux 8 년 전
부모
커밋
f9c711d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      apps/beeswax/src/beeswax/api.py

+ 1 - 0
apps/beeswax/src/beeswax/api.py

@@ -123,6 +123,7 @@ def _autocomplete(db, database=None, table=None, column=None, nested=None):
         for col_props in cols_extended:
           col_props.update(extra_col_options.get(col_props['name'], {}))
 
+      response['support_updates'] = table.is_impala_only
       response['columns'] = [column.name for column in table.cols]
       response['extended_columns'] = cols_extended
       response['partition_keys'] = [{'name': part.name, 'type': part.type} for part in table.partition_keys]