Skip to content

Commit d8a963f

Browse files
committed
remove arrow for the moment since it has a problem in the library itself
1 parent ef98543 commit d8a963f

File tree

3 files changed

+11
-116
lines changed

3 files changed

+11
-116
lines changed

chdb/driver/arrow_test.go

Lines changed: 0 additions & 106 deletions
This file was deleted.

chdb/driver/driver.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ func (d DriverType) PrepareRows(result chdbpurego.ChdbResult, buf []byte, bufSiz
6767

6868
func parseDriverType(s string) DriverType {
6969
switch strings.ToUpper(s) {
70-
case "ARROW":
71-
return ARROW
70+
// case "ARROW":
71+
// return ARROW
7272
case "PARQUET":
7373
return PARQUET
7474
}
@@ -190,7 +190,7 @@ func NewConnect(opts map[string]string) (ret *connector, err error) {
190190
if ok {
191191
ret.driverType = parseDriverType(driverType)
192192
} else {
193-
ret.driverType = ARROW //default to arrow
193+
ret.driverType = PARQUET //default to parquet
194194
}
195195
bufferSize, ok := opts[driverBufferSizeKey]
196196
if ok {
@@ -214,13 +214,13 @@ func NewConnect(opts map[string]string) (ret *connector, err error) {
214214
if ok {
215215
ret.udfPath = udfPath
216216
}
217-
if ret.session == nil {
217+
// if ret.session == nil {
218218

219-
ret.session, err = chdb.NewSession()
220-
if err != nil {
221-
return nil, err
222-
}
223-
}
219+
// ret.session, err = chdb.NewSession()
220+
// if err != nil {
221+
// return nil, err
222+
// }
223+
// }
224224
return
225225
}
226226

chdb/session.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ func (s *Session) Query(queryStr string, outputFormats ...string) (result chdbpu
5858
if len(outputFormats) > 0 {
5959
outputFormat = outputFormats[0]
6060
}
61+
return s.conn.Query(queryStr, outputFormat)
6162

62-
return connQueryToBuffer(s.conn, queryStr, outputFormat)
63+
// return connQueryToBuffer(s.conn, queryStr, outputFormat)
6364
}
6465

6566
// Close closes the session and removes the temporary directory

0 commit comments

Comments
 (0)