You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by hv...@apache.org on 2023/03/06 02:10:02 UTC

[spark] branch master updated: [MINOR][CONNECT] Remove unused protobuf imports to eliminate build warnings

This is an automated email from the ASF dual-hosted git repository.

hvanhovell pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new f55029d9456 [MINOR][CONNECT] Remove unused protobuf imports to eliminate build warnings
f55029d9456 is described below

commit f55029d94565f14b233ebc5a8bafa42089c15e3b
Author: panbingkun <pb...@gmail.com>
AuthorDate: Sun Mar 5 22:09:47 2023 -0400

    [MINOR][CONNECT] Remove unused protobuf imports to eliminate build warnings
    
    ### What changes were proposed in this pull request?
    The pr aims to remove unused protobuf imports in 'spark/connect/commands.proto'.
    
    ### Why are the changes needed?
    Eliminate build warnings as follow:
    <img width="1051" alt="image" src="https://user-images.githubusercontent.com/15246973/222913613-d5448908-7ab1-463c-bdad-502992cce761.png">
    
    ### Does this PR introduce _any_ user-facing change?
    No.
    
    ### How was this patch tested?
    Manual check & Pass GA.
    
    Closes #40279 from panbingkun/minor_proto_unused_warning.
    
    Authored-by: panbingkun <pb...@gmail.com>
    Signed-off-by: Herman van Hovell <he...@databricks.com>
---
 .../src/main/protobuf/spark/connect/commands.proto |  1 -
 python/pyspark/sql/connect/proto/commands_pb2.py   | 59 +++++++++++-----------
 2 files changed, 29 insertions(+), 31 deletions(-)

diff --git a/connector/connect/common/src/main/protobuf/spark/connect/commands.proto b/connector/connect/common/src/main/protobuf/spark/connect/commands.proto
index e553dcb1bc4..5c0718aefeb 100644
--- a/connector/connect/common/src/main/protobuf/spark/connect/commands.proto
+++ b/connector/connect/common/src/main/protobuf/spark/connect/commands.proto
@@ -20,7 +20,6 @@ syntax = 'proto3';
 import "google/protobuf/any.proto";
 import "spark/connect/expressions.proto";
 import "spark/connect/relations.proto";
-import "spark/connect/types.proto";
 
 package spark.connect;
 
diff --git a/python/pyspark/sql/connect/proto/commands_pb2.py b/python/pyspark/sql/connect/proto/commands_pb2.py
index 823ed81aa07..b2b8934068c 100644
--- a/python/pyspark/sql/connect/proto/commands_pb2.py
+++ b/python/pyspark/sql/connect/proto/commands_pb2.py
@@ -32,11 +32,10 @@ _sym_db = _symbol_database.Default()
 from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
 from pyspark.sql.connect.proto import expressions_pb2 as spark_dot_connect_dot_expressions__pb2
 from pyspark.sql.connect.proto import relations_pb2 as spark_dot_connect_dot_relations__pb2
-from pyspark.sql.connect.proto import types_pb2 as spark_dot_connect_dot_types__pb2
 
 
 DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
-    b'\n\x1cspark/connect/commands.proto\x12\rspark.connect\x1a\x19google/protobuf/any.proto\x1a\x1fspark/connect/expressions.proto\x1a\x1dspark/connect/relations.proto\x1a\x19spark/connect/types.proto"\xe9\x03\n\x07\x43ommand\x12]\n\x11register_function\x18\x01 \x01(\x0b\x32..spark.connect.CommonInlineUserDefinedFunctionH\x00R\x10registerFunction\x12H\n\x0fwrite_operation\x18\x02 \x01(\x0b\x32\x1d.spark.connect.WriteOperationH\x00R\x0ewriteOperation\x12_\n\x15\x63reate_dataframe_view\x1 [...]
+    b'\n\x1cspark/connect/commands.proto\x12\rspark.connect\x1a\x19google/protobuf/any.proto\x1a\x1fspark/connect/expressions.proto\x1a\x1dspark/connect/relations.proto"\xe9\x03\n\x07\x43ommand\x12]\n\x11register_function\x18\x01 \x01(\x0b\x32..spark.connect.CommonInlineUserDefinedFunctionH\x00R\x10registerFunction\x12H\n\x0fwrite_operation\x18\x02 \x01(\x0b\x32\x1d.spark.connect.WriteOperationH\x00R\x0ewriteOperation\x12_\n\x15\x63reate_dataframe_view\x18\x03 \x01(\x0b\x32).spark.connec [...]
 )
 
 
@@ -185,32 +184,32 @@ if _descriptor._USE_C_DESCRIPTORS == False:
     _WRITEOPERATIONV2_OPTIONSENTRY._serialized_options = b"8\001"
     _WRITEOPERATIONV2_TABLEPROPERTIESENTRY._options = None
     _WRITEOPERATIONV2_TABLEPROPERTIESENTRY._serialized_options = b"8\001"
-    _COMMAND._serialized_start = 166
-    _COMMAND._serialized_end = 655
-    _SQLCOMMAND._serialized_start = 658
-    _SQLCOMMAND._serialized_end = 802
-    _SQLCOMMAND_ARGSENTRY._serialized_start = 747
-    _SQLCOMMAND_ARGSENTRY._serialized_end = 802
-    _CREATEDATAFRAMEVIEWCOMMAND._serialized_start = 805
-    _CREATEDATAFRAMEVIEWCOMMAND._serialized_end = 955
-    _WRITEOPERATION._serialized_start = 958
-    _WRITEOPERATION._serialized_end = 2009
-    _WRITEOPERATION_OPTIONSENTRY._serialized_start = 1433
-    _WRITEOPERATION_OPTIONSENTRY._serialized_end = 1491
-    _WRITEOPERATION_SAVETABLE._serialized_start = 1494
-    _WRITEOPERATION_SAVETABLE._serialized_end = 1752
-    _WRITEOPERATION_SAVETABLE_TABLESAVEMETHOD._serialized_start = 1628
-    _WRITEOPERATION_SAVETABLE_TABLESAVEMETHOD._serialized_end = 1752
-    _WRITEOPERATION_BUCKETBY._serialized_start = 1754
-    _WRITEOPERATION_BUCKETBY._serialized_end = 1845
-    _WRITEOPERATION_SAVEMODE._serialized_start = 1848
-    _WRITEOPERATION_SAVEMODE._serialized_end = 1985
-    _WRITEOPERATIONV2._serialized_start = 2012
-    _WRITEOPERATIONV2._serialized_end = 2825
-    _WRITEOPERATIONV2_OPTIONSENTRY._serialized_start = 1433
-    _WRITEOPERATIONV2_OPTIONSENTRY._serialized_end = 1491
-    _WRITEOPERATIONV2_TABLEPROPERTIESENTRY._serialized_start = 2584
-    _WRITEOPERATIONV2_TABLEPROPERTIESENTRY._serialized_end = 2650
-    _WRITEOPERATIONV2_MODE._serialized_start = 2653
-    _WRITEOPERATIONV2_MODE._serialized_end = 2812
+    _COMMAND._serialized_start = 139
+    _COMMAND._serialized_end = 628
+    _SQLCOMMAND._serialized_start = 631
+    _SQLCOMMAND._serialized_end = 775
+    _SQLCOMMAND_ARGSENTRY._serialized_start = 720
+    _SQLCOMMAND_ARGSENTRY._serialized_end = 775
+    _CREATEDATAFRAMEVIEWCOMMAND._serialized_start = 778
+    _CREATEDATAFRAMEVIEWCOMMAND._serialized_end = 928
+    _WRITEOPERATION._serialized_start = 931
+    _WRITEOPERATION._serialized_end = 1982
+    _WRITEOPERATION_OPTIONSENTRY._serialized_start = 1406
+    _WRITEOPERATION_OPTIONSENTRY._serialized_end = 1464
+    _WRITEOPERATION_SAVETABLE._serialized_start = 1467
+    _WRITEOPERATION_SAVETABLE._serialized_end = 1725
+    _WRITEOPERATION_SAVETABLE_TABLESAVEMETHOD._serialized_start = 1601
+    _WRITEOPERATION_SAVETABLE_TABLESAVEMETHOD._serialized_end = 1725
+    _WRITEOPERATION_BUCKETBY._serialized_start = 1727
+    _WRITEOPERATION_BUCKETBY._serialized_end = 1818
+    _WRITEOPERATION_SAVEMODE._serialized_start = 1821
+    _WRITEOPERATION_SAVEMODE._serialized_end = 1958
+    _WRITEOPERATIONV2._serialized_start = 1985
+    _WRITEOPERATIONV2._serialized_end = 2798
+    _WRITEOPERATIONV2_OPTIONSENTRY._serialized_start = 1406
+    _WRITEOPERATIONV2_OPTIONSENTRY._serialized_end = 1464
+    _WRITEOPERATIONV2_TABLEPROPERTIESENTRY._serialized_start = 2557
+    _WRITEOPERATIONV2_TABLEPROPERTIESENTRY._serialized_end = 2623
+    _WRITEOPERATIONV2_MODE._serialized_start = 2626
+    _WRITEOPERATIONV2_MODE._serialized_end = 2785
 # @@protoc_insertion_point(module_scope)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org