Skip to content

Commit

Permalink
update: example of input_type and output_type with enum
Browse files Browse the repository at this point in the history
  • Loading branch information
hhatto committed Nov 3, 2023
1 parent 5e2967b commit f8e5d6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/groonga_microblog_tutorial/2_load.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from poyonga import InputType
from poyonga.client import Groonga


Expand Down Expand Up @@ -46,7 +47,7 @@ def _call(g, cmd, **kwargs):
"""


_call(g, "load", table="Users", values="".join(users.splitlines()))
_call(g, "load", table="Users", values="".join(users.splitlines()), input_type=InputType.JSON)
_call(g, "select", table="Users")


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
from poyonga import Groonga
from poyonga.const import OutputType


def _call_with_apachearrow(g, cmd, **kwargs):
Expand Down Expand Up @@ -27,7 +27,7 @@ def _call_with_apachearrow(g, cmd, **kwargs):
table="Comment", # NOTE: invalid table name
filter="last_modified<=1268802000",
output_columns="posted_by.name,comment,last_modified",
output_type="apache-arrow",
output_type=OutputType.APACHE_ARROW,
drilldown="hash_tags,posted_by",
drilldown_output_column="_id",
)

0 comments on commit f8e5d6b

Please sign in to comment.