Skip to content

Commit e352c77

Browse files
committed
rename checkOpen to checkOpenSessionContext
1 parent 5407d43 commit e352c77

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎core/src/main/java/org/apache/datafusion/SessionContext.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ private static byte[] serializeSchemaIpc(Schema schema) {
609609
* @throws IllegalStateException if this context is closed.
610610
*/
611611
public boolean tableExists(String name) {
612-
checkOpen();
612+
checkOpenSessionContext();
613613
if (name == null) {
614614
throw new IllegalArgumentException("tableExists name must be non-null");
615615
}
@@ -625,14 +625,14 @@ public boolean tableExists(String name) {
625625
* @throws IllegalStateException if this context is closed.
626626
*/
627627
public void deregisterTable(String name) {
628-
checkOpen();
628+
checkOpenSessionContext();
629629
if (name == null) {
630630
throw new IllegalArgumentException("deregisterTable name must be non-null");
631631
}
632632
deregisterTable(nativeHandle, name);
633633
}
634634

635-
private void checkOpen() {
635+
private void checkOpenSessionContext() {
636636
if (nativeHandle == 0) {
637637
throw new IllegalStateException("SessionContext is closed");
638638
}

0 commit comments

Comments
 (0)