Open Table
result = self._hc.table_open(pattern = '*', database_name = self._database_name)
Result:
This method will a Boolean value to represent whether this operation is successful. If the error pops up when opening tables, “ValueError” exception will be raised.
Parameter description:
Parameters | Description | Required |
---|---|---|
pattern (str) | Pattern specified when openingthe table | Yes |
database_name (str) | Database where target table is located | Yes, defaults to "default" database |
Table 94 Open Table (Python API)
Close Table
result = self._hc.table_close(pattern = '*', database_name = self._database_name)
Result:
This method will a Boolean value to represent whether this operation is successful. If the error pops up when deleting partitions, “ValueError” exception will be raised.
Parameter description:
Parameters | Description | Required |
---|---|---|
partition_names (list) | Pattern specified when closing the table | Yes |
database_name (str) | Database where target table is located | Yes, defaults to "default" database |
Table 95 Close Table (Python API)