Github user mhthanh commented on a diff in the pull request:
https://github.com/apache/tajo/pull/156#discussion_r18077313
--- Diff: tajo-docs/src/main/sphinx/tsql/execute_file.rst ---
@@ -0,0 +1,63 @@
+*********************************
+Executing Queries from Files
+*********************************
+
+
+-----------------------------------------------
+Basic usages
+-----------------------------------------------
+
+
+Tajo can execute more queries that were saved to a file using the -f file
argument as follows:
+
+.. code-block:: sql
+
+ $ cat aggregation.sql
+ select count(*) from table1;
+ select sum(score) from table1;
+
+ $ bin/tsql -f aggregation.sql
+ Progress: 0%, response time: 0.216 sec
+ Progress: 0%, response time: 0.217 sec
+ Progress: 100%, response time: 0.331 sec
+ ?count
+ -------------------------------
+ 5
+ (1 rows, 0.331 sec, 2 B selected)
+ Progress: 0%, response time: 0.203 sec
+ Progress: 0%, response time: 0.204 sec
+ Progress: 50%, response time: 0.406 sec
+ Progress: 100%, response time: 0.769 sec
+ ?sum
+ -------------------------------
+ 15.0
+ (1 rows, 0.769 sec, 5 B selected)
+
+
+
+-----------------------------------------------
+Setting parameter value in SQL file
+-----------------------------------------------
+
+If you wish to set a parameter value in the SQL file, you can set with the
-param key=value option.When you use this feature, you have to use the
parameter in the file as follows:
--- End diff --
Typo: "option.When" -> "option. When"
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---