Skip to content

Commit

Permalink
[hotfix][docs] Fix Python example in the documentation about event_time
Browse files Browse the repository at this point in the history
This closes apache#12789.
  • Loading branch information
liyubin117 authored and dianfu committed Jun 30, 2020
1 parent a6573ee commit ed66ae4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/dev/event_time.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ stream
{% highlight python %}
env = StreamExecutionEnvironment.get_execution_environment()

env.set_stream_time_characteristic(TimeCharacteristic.ProcessingTime)
env.set_stream_time_characteristic(TimeCharacteristic.EventTime)

# alternatively:
# env.set_stream_time_characteristic(TimeCharacteristic.IngestionTime)
# env.set_stream_time_characteristic(TimeCharacteristic.EventTime)
# env.set_stream_time_characteristic(TimeCharacteristic.ProcessingTime)
{% endhighlight %}
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/dev/event_time.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ stream
{% highlight python %}
env = StreamExecutionEnvironment.get_execution_environment()

env.set_stream_time_characteristic(TimeCharacteristic.ProcessingTime)
env.set_stream_time_characteristic(TimeCharacteristic.EventTime)

# alternatively:
# env.set_stream_time_characteristic(TimeCharacteristic.IngestionTime)
# env.set_stream_time_characteristic(TimeCharacteristic.EventTime)
# env.set_stream_time_characteristic(TimeCharacteristic.ProcessingTime)
{% endhighlight %}
</div>
</div>
Expand Down

0 comments on commit ed66ae4

Please sign in to comment.