Skip to content

Commit 251d889

Browse files
authored
Update WvcLib.scala
1 parent b666d5a commit 251d889

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

_patches/WvcLib.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ object WvcLib extends LogSupport:
3333
@exported("wvlet_compile_query")
3434
def compile_query(queryJson: CString): CString =
3535
try
36-
val json = fromCString(queryJson)
37-
val query = MessageCodec.of[String].fromJson(json)
38-
val args = Array("-q", query, "-x")
36+
val json = fromCString(argJson)
37+
val args = MessageCodec.of[Array[String]].fromJson(json)
3938
val (sql, _) = WvcMain.compileWvletQuery(args)
4039

4140
val buffer = stackalloc[CChar](sql.length + 1)

0 commit comments

Comments
 (0)