|
@@ -1,39 +1,15 @@
|
|
|
-docsDropHeight
|
|
|
-// tag::dropheight[]
|
|
|
-FROM employees
|
|
|
-| DROP height
|
|
|
-// end::dropheight[]
|
|
|
-| LIMIT 0;
|
|
|
-
|
|
|
-avg_worked_seconds:long | birth_date:date | emp_no:integer | first_name:keyword | gender:keyword | height.float:double | height.half_float:double | height.scaled_float:double | hire_date:date | is_rehired:boolean | job_positions:keyword | languages:integer | languages.byte:integer | languages.long:long | languages.short:integer | last_name:keyword | salary:integer | salary_change:double | salary_change.int:integer |salary_change.keyword:keyword |salary_change.long:long | still_hired:boolean
|
|
|
-;
|
|
|
-
|
|
|
-docsDropHeightWithWildcard
|
|
|
-// tag::dropheightwithwildcard[]
|
|
|
-FROM employees
|
|
|
-| DROP height*
|
|
|
-// end::dropheightwithwildcard[]
|
|
|
-| LIMIT 0;
|
|
|
-
|
|
|
-avg_worked_seconds:long | birth_date:date | emp_no:integer | first_name:keyword | gender:keyword | hire_date:date | is_rehired:boolean | job_positions:keyword | languages:integer | languages.byte:integer | languages.long:long | languages.short:integer | last_name:keyword | salary:integer | salary_change:double | salary_change.int:integer |salary_change.keyword:keyword |salary_change.long:long | still_hired:boolean
|
|
|
-;
|
|
|
-
|
|
|
-docsLimit
|
|
|
-// tag::limit[]
|
|
|
-FROM employees
|
|
|
-| SORT emp_no ASC
|
|
|
-| LIMIT 5
|
|
|
-// end::limit[]
|
|
|
-| KEEP emp_no
|
|
|
-;
|
|
|
-
|
|
|
-emp_no:integer
|
|
|
-10001
|
|
|
-10002
|
|
|
-10003
|
|
|
-10004
|
|
|
-10005
|
|
|
-;
|
|
|
+// This file contains any ESQL snippets from the docs that don't have a home
|
|
|
+// anywhere else. The Isle of Misfit Toys. When you need to add new examples
|
|
|
+// for the docs you should try to convert an existing test first. Just add
|
|
|
+// the comments in whatever file the test already lives in. If you have to
|
|
|
+// write a new test to make an example in the docs then put it in whatever
|
|
|
+// file matches its "theme" best. Put it next to similar tests. Not here.
|
|
|
+
|
|
|
+// Also! When Nik originally extracted examples from the docs to make them
|
|
|
+// testable he didn't spend a lot of time putting the docs into appropriate
|
|
|
+// files. He just made this one. He didn't put his toys away. We'd be better
|
|
|
+// off not adding to this strange toy-pile and instead moving things into
|
|
|
+// the appropriate files.
|
|
|
|
|
|
docsKeep
|
|
|
// tag::keep[]
|