Skip to content

Commit 3881f56

Browse files
committed
Merge pull request #3 from Automattic/close-conn-in-example
Close the thrift connection in example file
2 parents af0e03d + e19c9d3 commit 3881f56

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

example.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@
1717
->connect()
1818
->queryAndFetchAll( 'SHOW TABLES' );
1919
print_r( $impalaTables );
20-
21-
$impala->disconnect(); //Don't forget to clear the client and close socket.
20+
21+
// Don't forget to clear the client and close socket.
22+
$hive->disconnect();
23+
$impala->disconnect();

0 commit comments

Comments
 (0)