@@ -9,7 +9,7 @@ class ChdbError(Exception):
9
9
_arrow_format = set ({"dataframe" , "arrowtable" })
10
10
_process_result_format_funs = {
11
11
"dataframe" : lambda x : to_df (x ),
12
- "arrowtable" : lambda x : to_arrowTable (x )
12
+ "arrowtable" : lambda x : to_arrowTable (x ),
13
13
}
14
14
15
15
# If any UDF is defined, the path of the UDF will be set to this variable
@@ -18,7 +18,7 @@ class ChdbError(Exception):
18
18
# UDF script path will be f"{g_udf_path}/{func_name}.py"
19
19
g_udf_path = ""
20
20
21
- chdb_version = ('0' , '6' , '0' )
21
+ chdb_version = ("0" , "6" , "0" )
22
22
if sys .version_info [:2 ] >= (3 , 7 ):
23
23
# get the path of the current file
24
24
current_path = os .path .dirname (os .path .abspath (__file__ ))
@@ -78,8 +78,16 @@ def query(sql, output_format="CSV", path="", udf_path=""):
78
78
raise ChdbError (res .error_message ())
79
79
return result_func (res )
80
80
81
+
81
82
# alias for query
82
83
sql = query
83
84
84
- __all__ = ["ChdbError" , "query" , "sql" , "chdb_version" ,
85
- "engine_version" , "to_df" , "to_arrowTable" ]
85
+ __all__ = [
86
+ "ChdbError" ,
87
+ "query" ,
88
+ "sql" ,
89
+ "chdb_version" ,
90
+ "engine_version" ,
91
+ "to_df" ,
92
+ "to_arrowTable" ,
93
+ ]
0 commit comments