@@ -198,8 +198,8 @@ fetched rows / total rows = 3/3
198198
199199## Example 8: Selecting all fields
200200
201- The following query selects all fields defined in the index schema using `` `*` `` . Fields with null values are included in the result set:
202-
201+ The following query selects all fields defined in the index schema using `` `*` `` . Struct fields are returned alongside their flattened sub-fields, and fields with null values are included in the result set:
202+
203203``` ppl
204204source=otellogs
205205| where severityText = 'WARN'
@@ -211,11 +211,11 @@ The query returns the following results:
211211
212212``` text
213213fetched rows / total rows = 1/1
214- +----------+------------------+---------------------+-------------------------------------------------------------------------------------------------------------------------------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------+-------+------------+------------------------+----------------+---------------------+----------------------------------------------------------------------------------------+
215- | spanId | traceId | @timestamp | instrumentationScope | severityText | resource | flags | attributes | droppedAttributesCount | severityNumber | time | body |
216- |----------+------------------+---------------------+-------------------------------------------------------------------------------------------------------------------------------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------+-------+------------+------------------------+----------------+---------------------+----------------------------------------------------------------------------------------|
217- | span0003 | abcd1234efgh5678 | 2024-02-01 09:12:00 | {'name': 'go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc', 'droppedAttributesCount': 0, 'version': '0.49.0'} | WARN | {'attributes': {'service': {'name': 'product-catalog'}, 'host': {'name': 'productcatalog-7c9d-zn4p2'}}, 'droppedAttributesCount': 0} | 0 | {} | 0 | 13 | 2024-02-01 09:12:00 | Slow query detected: SELECT * FROM products WHERE category = 'electronics' took 3200ms |
218- +----------+------------------+---------------------+-------------------------------------------------------------------------------------------------------------------------------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------+-------+------------+------------------------+----------------+---------------------+----------------------------------------------------------------------------------------+
214+ +----------+------------------+---------------------+-------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------- +-----------------------------------------------------------------------------+ ------------------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+---------------------------------------+-------------------------------+-----------------------------+----------------------------------+ ---------------------------------+-------+------------+------------------------+----------------+---------------------+----------------------------------------------------------------------------------------+
215+ | spanId | traceId | @timestamp | instrumentationScope | instrumentationScope.droppedAttributesCount | instrumentationScope.name | instrumentationScope.version | severityText | resource | resource.attributes | resource.attributes.host | resource.attributes.host.name | resource.attributes.service | resource.attributes.service.name | resource.droppedAttributesCount | flags | attributes | droppedAttributesCount | severityNumber | time | body |
216+ |----------+------------------+---------------------+-------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------- +-----------------------------------------------------------------------------+ ------------------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+---------------------------------------+-------------------------------+-----------------------------+----------------------------------+ ---------------------------------+-------+------------+------------------------+----------------+---------------------+----------------------------------------------------------------------------------------|
217+ | span0003 | abcd1234efgh5678 | 2024-02-01 09:12:00 | {'name': 'go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc', 'droppedAttributesCount': 0, 'version': '0.49.0'} | 0 | go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc | 0.49.0 | WARN | {'attributes': {'service': {'name': 'product-catalog'}, 'host': {'name': 'productcatalog-7c9d-zn4p2'}}, 'droppedAttributesCount': 0} | {'service': {'name': 'product-catalog'}, 'host': {'name': 'productcatalog-7c9d-zn4p2'}} | {'name': 'productcatalog-7c9d-zn4p2'} | productcatalog-7c9d-zn4p2 | {'name': 'product-catalog'} | product-catalog | 0 | 0 | {} | 0 | 13 | 2024-02-01 09:12:00 | Slow query detected: SELECT * FROM products WHERE category = 'electronics' took 3200ms |
218+ +----------+------------------+---------------------+-------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------- +-----------------------------------------------------------------------------+ ------------------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+---------------------------------------+-------------------------------+-----------------------------+----------------------------------+ ---------------------------------+-------+------------+------------------------+----------------+---------------------+----------------------------------------------------------------------------------------+
219219```
220220
221221
0 commit comments