Skip to content

Commit 1478d56

Browse files
committed
Rephrase flatten limitations
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
1 parent 5755bee commit 1478d56

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

docs/user/ppl/cmd/flatten.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,13 @@ PPL query::
106106

107107
Limitations
108108
===========
109-
* ``flatten`` after ``fields`` is not supported under the current
110-
implementation.
111-
E.g. ``source=my-index | fields message | flatten message`` will not work.
112-
This is because the current implementation relies on the flattened fields
113-
like ``message.info``, ``message.author``, etc. to be present in the read
114-
result.
109+
* ``flatten`` command may not work as expected when its flattened fields are
110+
invisible. For example in query
111+
``source=my-index | fields message | flatten message``, the
112+
``flatten message`` command doesn't work since some flattened fields such as
113+
``message.info`` and ``message.author`` after command ``fields message`` are
114+
invisible.
115+
As an alternative, you can change to ``source=my-index | flatten message``.
115116
* The command works only with Calcite enabled. This can be set with the
116117
following command:
117118

0 commit comments

Comments
 (0)