Github user silentsokolov commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14805#discussion_r76384801
  
    --- Diff: docs/structured-streaming-programming-guide.md ---
    @@ -487,11 +487,11 @@ Dataset[Row] csvDF = spark
     spark = SparkSession. ...
     
     # Read text from socket 
    -socketDF = spark \
    -    .readStream()  \
    -    .format("socket") \
    -    .option("host", "localhost") \
    -    .option("port", 9999) \
    +socketDF = spark\
    --- End diff --
    
    @srowen, there is no clear definition of it.
    
    
https://docs.python.org/2/reference/lexical_analysis.html#explicit-line-joining
    https://www.python.org/dev/peps/pep-0008/#maximum-line-length
    
    I use:
    ```python
    # with space
    if 1900 < year < 2100 and 1 <= month <= 12:
        return 1
    
    if 1900 < year < 2100 \
        and 1 <= month <= 12:
        return 1
    
    # without space
    s = 'Hello world'.lower().split()
    
    s = 'Hello world'.lower()\
        .split()
    ```
    
    This makes the code more readable.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to