Skip to content
Snippets Groups Projects
  • WeichenXu's avatar
    ab6e4aea
    [SPARK-16662][PYSPARK][SQL] fix HiveContext warning bug · ab6e4aea
    WeichenXu authored
    ## What changes were proposed in this pull request?
    
    move the `HiveContext` deprecate warning printing statement into `HiveContext` constructor.
    so that this warning will appear only when we use `HiveContext`
    otherwise this warning will always appear if we reference the pyspark.ml.context code file.
    
    ## How was this patch tested?
    
    Manual.
    
    Author: WeichenXu <WeichenXu123@outlook.com>
    
    Closes #14301 from WeichenXu123/hiveContext_python_warning_update.
    ab6e4aea
    History
    [SPARK-16662][PYSPARK][SQL] fix HiveContext warning bug
    WeichenXu authored
    ## What changes were proposed in this pull request?
    
    move the `HiveContext` deprecate warning printing statement into `HiveContext` constructor.
    so that this warning will appear only when we use `HiveContext`
    otherwise this warning will always appear if we reference the pyspark.ml.context code file.
    
    ## How was this patch tested?
    
    Manual.
    
    Author: WeichenXu <WeichenXu123@outlook.com>
    
    Closes #14301 from WeichenXu123/hiveContext_python_warning_update.