[GitHub] [carbondata] QiangCai opened a new pull request #3751: [CARBONDATA-3803] Mark CarbonSession as deprecated since 2.0

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] QiangCai opened a new pull request #3751: [CARBONDATA-3803] Mark CarbonSession as deprecated since 2.0

GitBox

QiangCai opened a new pull request #3751:
URL: https://github.com/apache/carbondata/pull/3751


    ### Why is this PR needed?
    Better to use CarbonExtensions instead of CarbonSession in version 2.0.
   
    ### What changes were proposed in this PR?
   mark CarbonSession as deprecated since version 2.0.
       
    ### Does this PR introduce any user interface change?
    - No
   
    ### Is any new testcase added?
    - No, no need
   
       
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[hidden email]


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3751: [CARBONDATA-3803] Mark CarbonSession as deprecated since 2.0

GitBox

CarbonDataQA1 commented on pull request #3751:
URL: https://github.com/apache/carbondata/pull/3751#issuecomment-625016761


   Build Success with Spark 2.4.5, Please check CI http://121.244.95.60:12545/job/ApacheCarbon_PR_Builder_2.4.5/1247/
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[hidden email]


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3751: [CARBONDATA-3803] Mark CarbonSession as deprecated since 2.0

GitBox
In reply to this post by GitBox

CarbonDataQA1 commented on pull request #3751:
URL: https://github.com/apache/carbondata/pull/3751#issuecomment-625020463


   Build Success with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/2965/
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[hidden email]


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] kunal642 commented on pull request #3751: [CARBONDATA-3803] Mark CarbonSession as deprecated since 2.0

GitBox
In reply to this post by GitBox

kunal642 commented on pull request #3751:
URL: https://github.com/apache/carbondata/pull/3751#issuecomment-625229890


   Please print a log in CarbonSession to indicate to the user that this is deprecated


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[hidden email]


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] kunal642 edited a comment on pull request #3751: [CARBONDATA-3803] Mark CarbonSession as deprecated since 2.0

GitBox
In reply to this post by GitBox

kunal642 edited a comment on pull request #3751:
URL: https://github.com/apache/carbondata/pull/3751#issuecomment-625229890


   Please print a warn log in CarbonSession to indicate to the user that this is deprecated


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[hidden email]


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] ajantha-bhat commented on a change in pull request #3751: [CARBONDATA-3803] Mark CarbonSession as deprecated since 2.0

GitBox
In reply to this post by GitBox

ajantha-bhat commented on a change in pull request #3751:
URL: https://github.com/apache/carbondata/pull/3751#discussion_r421945890



##########
File path: integration/spark/src/main/scala/org/apache/spark/sql/CarbonSession.scala
##########
@@ -40,12 +40,18 @@ import org.apache.carbondata.streaming.CarbonStreamingQueryListener
  * Session implementation for {org.apache.spark.sql.SparkSession}
  * Implemented this class only to use our own SQL DDL commands.
  * User needs to use {CarbonSession.getOrCreateCarbon} to create Carbon session.
+ *
+ * @deprecated Since 2.0, only use for backward compatibility,
+ *             please switch to use {@link CarbonExtensions}.
  */
+@Deprecated
 class CarbonSession(@transient val sc: SparkContext,

Review comment:
       "**stored by**" syntax also we need to deprecate and update document for the same?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[hidden email]


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] QiangCai commented on a change in pull request #3751: [CARBONDATA-3803] Mark CarbonSession as deprecated since 2.0

GitBox
In reply to this post by GitBox

QiangCai commented on a change in pull request #3751:
URL: https://github.com/apache/carbondata/pull/3751#discussion_r421958314



##########
File path: integration/spark/src/main/scala/org/apache/spark/sql/CarbonSession.scala
##########
@@ -40,12 +40,18 @@ import org.apache.carbondata.streaming.CarbonStreamingQueryListener
  * Session implementation for {org.apache.spark.sql.SparkSession}
  * Implemented this class only to use our own SQL DDL commands.
  * User needs to use {CarbonSession.getOrCreateCarbon} to create Carbon session.
+ *
+ * @deprecated Since 2.0, only use for backward compatibility,
+ *             please switch to use {@link CarbonExtensions}.
  */
+@Deprecated
 class CarbonSession(@transient val sc: SparkContext,

Review comment:
       the document already contains it




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[hidden email]


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] QiangCai commented on a change in pull request #3751: [CARBONDATA-3803] Mark CarbonSession as deprecated since 2.0

GitBox
In reply to this post by GitBox

QiangCai commented on a change in pull request #3751:
URL: https://github.com/apache/carbondata/pull/3751#discussion_r421959357



##########
File path: integration/spark/src/main/scala/org/apache/spark/sql/CarbonSession.scala
##########
@@ -40,12 +40,18 @@ import org.apache.carbondata.streaming.CarbonStreamingQueryListener
  * Session implementation for {org.apache.spark.sql.SparkSession}
  * Implemented this class only to use our own SQL DDL commands.
  * User needs to use {CarbonSession.getOrCreateCarbon} to create Carbon session.
+ *
+ * @deprecated Since 2.0, only use for backward compatibility,
+ *             please switch to use {@link CarbonExtensions}.
  */
+@Deprecated
 class CarbonSession(@transient val sc: SparkContext,

Review comment:
       please check https://github.com/apache/carbondata/blob/master/docs/quick-start-guide.md,
   it lists all supported syntax by CarbonSession and CarbonExtensions.
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[hidden email]


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3751: [CARBONDATA-3803] Mark CarbonSession as deprecated since 2.0

GitBox
In reply to this post by GitBox

CarbonDataQA1 commented on pull request #3751:
URL: https://github.com/apache/carbondata/pull/3751#issuecomment-625652652


   Build Success with Spark 2.4.5, Please check CI http://121.244.95.60:12545/job/ApacheCarbon_PR_Builder_2.4.5/1256/
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[hidden email]


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] CarbonDataQA1 commented on pull request #3751: [CARBONDATA-3803] Mark CarbonSession as deprecated since 2.0

GitBox
In reply to this post by GitBox

CarbonDataQA1 commented on pull request #3751:
URL: https://github.com/apache/carbondata/pull/3751#issuecomment-625653992


   Build Success with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/2974/
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[hidden email]


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] QiangCai commented on pull request #3751: [CARBONDATA-3803] Mark CarbonSession as deprecated since 2.0

GitBox
In reply to this post by GitBox

QiangCai commented on pull request #3751:
URL: https://github.com/apache/carbondata/pull/3751#issuecomment-625724057


   > Please print a warn log in CarbonSession to indicate to the user that this is deprecated
   
   done


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[hidden email]


Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] ajantha-bhat commented on pull request #3751: [CARBONDATA-3803] Mark CarbonSession as deprecated since 2.0

GitBox
In reply to this post by GitBox

ajantha-bhat commented on pull request #3751:
URL: https://github.com/apache/carbondata/pull/3751#issuecomment-626136273


   LGTM


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[hidden email]