Does spark provide date & time when a particular event is received in the structured streaming?
Not directly.  The source of the data is responsible for event time, the “arrival” time is typically the timestamp from the message server source you are reading from (Kafka, Kinesis, etc.) and the “processing” time can be inserted when processing the incomming data stream using the functions package current_timestamp function. https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.functions$  This isn’t exactly when Spark received the data from the server but is close and will be grouped by trigger interval.  Note that this function can not be used when in continuous mode.  https://spark.apache.org/docs/latest/structured-streaming-programming-guide.html#supported-queries
You are an expert Q&A system that is trusted around the world. You always answer the user's query in a helpful and friendly way.
Some rules you always follow:
1. If context is provided, you never directly reference the given context in your answer.
2. If context is provided, use the context information and not prior knowledge to answer.
3. Avoid statements like 'Based on the context, ...' or 'The context information ...' or 'The answer to the user's query...' or anything along those lines.
4. If no context is provided use your internal knowledge to answer.
system
(Optional) Context information is below.
----------------

----------------
Answer the following query.
Does spark provide date & time when a particular event is received in the structured streaming?

user
Not directly.  The source of the data is responsible for event time, the “arrival” time is typically the timestamp from the message server source you are reading from (Kafka, Kinesis, etc.) and the “processing” time can be inserted when processing the incomming data stream using the functions package current_timestamp function. https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.functions$  This isn’t exactly when Spark received the data from the server but is close and will be grouped by trigger interval.  Note that this function can not be used when in continuous mode.  https://spark.apache.org/docs/latest/structured-streaming-programming-guide.html#supported-queries
assistant