| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
| <concept rev="obwl" id="default_order_by_limit"> |
| |
| <title>DEFAULT_ORDER_BY_LIMIT Query Option</title> |
| <titlealts audience="PDF"><navtitle>DEFAULT_ORDER_BY_LIMIT</navtitle></titlealts> |
| <prolog> |
| <metadata> |
| <data name="Category" value="Impala"/> |
| <data name="Category" value="Impala Query Options"/> |
| <data name="Category" value="Developers"/> |
| <data name="Category" value="Data Analysts"/> |
| </metadata> |
| </prolog> |
| |
| <conbody> |
| |
| <p conref="../shared/impala_common.xml#common/obwl_query_options"/> |
| |
| <p rev="1.4.0"> |
| Prior to Impala 1.4.0, Impala queries that use the <codeph><xref href="impala_order_by.xml#order_by">ORDER |
| BY</xref></codeph> clause must also include a |
| <codeph><xref href="impala_limit.xml#limit">LIMIT</xref></codeph> clause, to avoid accidentally producing |
| huge result sets that must be sorted. Sorting a huge result set is a memory-intensive operation. In Impala |
| 1.4.0 and higher, Impala uses a temporary disk work area to perform the sort if that operation would |
| otherwise exceed the Impala memory limit on a particular host. |
| </p> |
| |
| <p> |
| <b>Type: numeric</b> |
| </p> |
| |
| <p> |
| <b>Default:</b> -1 (no default limit) |
| </p> |
| </conbody> |
| </concept> |