mirror of
https://github.com/apache/impala.git
synced 2025-12-23 21:08:39 -05:00
IMPALA-1612: (shell) Upgrade sqlparse for bug fix
The only thing this commit does is upgrade sqlparse. The upgrade was done by downloading and extracting the tarball, nothing else (such as patching). The older version of sqlparse would parse SELECT ' ; ' ; into two statements. Neither statement is complete due to the open quote and this would cause an infinite loop. The bug is already fixed in the newest version of sqlparse. Change-Id: I7ce7c269769ae0cde3dc8ca386d0b0e11bea71c1 Reviewed-on: http://gerrit.cloudera.org:8080/102 Reviewed-by: Casey Ching <casey@cloudera.com> Tested-by: Internal Jenkins
This commit is contained in:
64
shell/ext-py/sqlparse-0.1.14/docs/source/analyzing.rst
Normal file
64
shell/ext-py/sqlparse-0.1.14/docs/source/analyzing.rst
Normal file
@@ -0,0 +1,64 @@
|
||||
.. _analyze:
|
||||
|
||||
Analyzing the Parsed Statement
|
||||
==============================
|
||||
|
||||
When the :meth:`~sqlparse.parse` function is called the returned value
|
||||
is a tree-ish representation of the analyzed statements. The returned
|
||||
objects can be used by applications to retrieve further information about
|
||||
the parsed SQL.
|
||||
|
||||
|
||||
Base Classes
|
||||
------------
|
||||
|
||||
All returned objects inherit from these base classes.
|
||||
The :class:`~sqlparse.sql.Token` class represents a single token and
|
||||
:class:`~sqlparse.sql.TokenList` class is a group of tokens.
|
||||
The latter provides methods for inspecting it's child tokens.
|
||||
|
||||
.. autoclass:: sqlparse.sql.Token
|
||||
:members:
|
||||
|
||||
.. autoclass:: sqlparse.sql.TokenList
|
||||
:members:
|
||||
|
||||
|
||||
SQL Representing Classes
|
||||
------------------------
|
||||
|
||||
The following classes represent distinct parts of a SQL statement.
|
||||
|
||||
.. autoclass:: sqlparse.sql.Statement
|
||||
:members:
|
||||
|
||||
.. autoclass:: sqlparse.sql.Comment
|
||||
:members:
|
||||
|
||||
.. autoclass:: sqlparse.sql.Identifier
|
||||
:members:
|
||||
|
||||
.. autoclass:: sqlparse.sql.IdentifierList
|
||||
:members:
|
||||
|
||||
.. autoclass:: sqlparse.sql.Where
|
||||
:members:
|
||||
|
||||
.. autoclass:: sqlparse.sql.Case
|
||||
:members:
|
||||
|
||||
.. autoclass:: sqlparse.sql.Parenthesis
|
||||
:members:
|
||||
|
||||
.. autoclass:: sqlparse.sql.If
|
||||
:members:
|
||||
|
||||
.. autoclass:: sqlparse.sql.For
|
||||
:members:
|
||||
|
||||
.. autoclass:: sqlparse.sql.Assignment
|
||||
:members:
|
||||
|
||||
.. autoclass:: sqlparse.sql.Comparison
|
||||
:members:
|
||||
|
||||
Reference in New Issue
Block a user