{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":17165658,"defaultBranch":"master","name":"spark","ownerLogin":"apache","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2014-02-25T08:00:08.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/47359?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1717372277.0","currentOid":""},"activityList":{"items":[{"before":"ec6db63ca6acdf7ba32d3ded99ea207dd3823633","after":"5a2f374a208f9580ea8d0183d75df6cd2bee8e1f","ref":"refs/heads/master","pushedAt":"2024-06-10T18:18:15.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"JoshRosen","name":"Josh Rosen","path":"/JoshRosen","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/50748?s=80&v=4"},"commit":{"message":"[SPARK-48544][SQL] Reduce memory pressure of empty TreeNode BitSets\n\n### What changes were proposed in this pull request?\n\n- Changed the `ineffectiveRules` variable of the `TreeNode` class to initialize lazily. This will reduce unnecessary driver memory pressure.\n\n### Why are the changes needed?\n\n- Plans with large expression or operator trees are known to cause driver memory pressure; this is one step in alleviating that issue.\n\n### Does this PR introduce _any_ user-facing change?\n\nNo.\n\n### How was this patch tested?\n\nExisting UT covers behavior. Outwards facing behavior does not change.\n\n### Was this patch authored or co-authored using generative AI tooling?\n\nNo\n\nCloses #46919 from n-young-db/ineffective-rules-lazy.\n\nAuthored-by: Nick Young \nSigned-off-by: Josh Rosen ","shortMessageHtmlLink":"[SPARK-48544][SQL] Reduce memory pressure of empty TreeNode BitSets"}},{"before":"3857a9d36d4ae923994ac70a50e5be9c36686836","after":"ec6db63ca6acdf7ba32d3ded99ea207dd3823633","ref":"refs/heads/master","pushedAt":"2024-06-10T18:06:46.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"HyukjinKwon","name":"Hyukjin Kwon","path":"/HyukjinKwon","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/6477701?s=80&v=4"},"commit":{"message":"[SPARK-48569][SS][CONNECT] Handle edge cases in query.name\n\n### What changes were proposed in this pull request?\n\n1. In connect, when a streaming query name is not specified, it's query.name should return None. Currently it returns an empty string without this patch.\n2. In classic spark, one cannot set the streaming query's name to be empty string. This check was missing in Spark Connect. Adding it back.\n\n### Why are the changes needed?\n\nEdge case handling.\n\n### Does this PR introduce _any_ user-facing change?\n\nNo\n\n### How was this patch tested?\n\nAdded unit test.\n\n### Was this patch authored or co-authored using generative AI tooling?\n\nNo.\n\nCloses #46920 from WweiL/SPARK-48569-query-name-None.\n\nAuthored-by: Wei Liu \nSigned-off-by: Hyukjin Kwon ","shortMessageHtmlLink":"[SPARK-48569][SS][CONNECT] Handle edge cases in query.name"}},{"before":"61fd936c8939b139f8fa02be8c90e655c2afa355","after":"3857a9d36d4ae923994ac70a50e5be9c36686836","ref":"refs/heads/master","pushedAt":"2024-06-10T16:18:20.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"cloud-fan","name":"Wenchen Fan","path":"/cloud-fan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3182036?s=80&v=4"},"commit":{"message":"[SPARK-48410][SQL] Fix InitCap expression for UTF8_BINARY_LCASE & ICU collations\n\n### What changes were proposed in this pull request?\nString titlecase conversion under UTF8_BINARY_LCASE and other ICU collations now work using the appropriate ICU default locale for character mapping, and uses ICU BreakIterator.getWordInstance to locate boundaries between words.\n\n### Why are the changes needed?\nSimilar Spark expressions such as Lower & Upper use the same interface (UCharacter) to perform collation-aware string transformation, and InitCap should offer a consistant way to titlecase strings across the collation space.\n\n### Does this PR introduce _any_ user-facing change?\nYes, InitCap should now work properly for all collations other than UTF8_BINARY.\n\n### How was this patch tested?\nNew and existing unit tests, as well as existing e2e sql tests.\n\n### Was this patch authored or co-authored using generative AI tooling?\nNo.\n\nCloses #46732 from uros-db/initcap-icu.\n\nAuthored-by: Uros Bojanic <157381213+uros-db@users.noreply.github.com>\nSigned-off-by: Wenchen Fan ","shortMessageHtmlLink":"[SPARK-48410][SQL] Fix InitCap expression for UTF8_BINARY_LCASE & ICU…"}},{"before":"190166908ba03897235ba2591f0f9200e7e80387","after":"61fd936c8939b139f8fa02be8c90e655c2afa355","ref":"refs/heads/master","pushedAt":"2024-06-10T16:14:19.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"cloud-fan","name":"Wenchen Fan","path":"/cloud-fan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3182036?s=80&v=4"},"commit":{"message":"[SPARK-48403][SQL] Fix Lower & Upper expressions for UTF8_BINARY_LCASE & ICU collations\n\n### What changes were proposed in this pull request?\nString lowercase/uppercase conversion in UTF8_BINARY_LCASE now works using ICU default locale, similar to how other ICU collations currently work in Spark.\n\n### Why are the changes needed?\nAll collations apart from UTF8_BINARY should use the same interface (UCharacter) that utilizes ICU toLowerCase/toUpperCase implementation, rather than mixing JVM & ICU implementations.\n\n### Does this PR introduce _any_ user-facing change?\nNo.\n\n### How was this patch tested?\nExisting unit tests and e2e sql tests.\n\n### Was this patch authored or co-authored using generative AI tooling?\nNo.\n\nCloses #46720 from uros-db/lower-upper-initcap.\n\nAuthored-by: Uros Bojanic <157381213+uros-db@users.noreply.github.com>\nSigned-off-by: Wenchen Fan ","shortMessageHtmlLink":"[SPARK-48403][SQL] Fix Lower & Upper expressions for UTF8_BINARY_LCAS…"}},{"before":"d9394eee5ebbeb695baaec6122da2ed970842dfd","after":"190166908ba03897235ba2591f0f9200e7e80387","ref":"refs/heads/master","pushedAt":"2024-06-10T16:10:25.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"HyukjinKwon","name":"Hyukjin Kwon","path":"/HyukjinKwon","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/6477701?s=80&v=4"},"commit":{"message":"[SPARK-48564][PYTHON][CONNECT] Propagate cached schema in set operations\n\n### What changes were proposed in this pull request?\nPropagate cached schema in set operations\n\n### Why are the changes needed?\nto avoid extra RPC to get the schema of result data frame\n\n### Does this PR introduce _any_ user-facing change?\nNo\n\n### How was this patch tested?\nadded tests\n\n### Was this patch authored or co-authored using generative AI tooling?\nNo\n\nCloses #46915 from zhengruifeng/set_op_schema.\n\nAuthored-by: Ruifeng Zheng \nSigned-off-by: Hyukjin Kwon ","shortMessageHtmlLink":"[SPARK-48564][PYTHON][CONNECT] Propagate cached schema in set operations"}},{"before":"24bce72c9065336a962fe76feeb14fa2119ef961","after":"d9394eee5ebbeb695baaec6122da2ed970842dfd","ref":"refs/heads/master","pushedAt":"2024-06-09T15:36:08.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"HyukjinKwon","name":"Hyukjin Kwon","path":"/HyukjinKwon","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/6477701?s=80&v=4"},"commit":{"message":"[SPARK-48560][SS][PYTHON] Make StreamingQueryListener.spark settable\n\n### What changes were proposed in this pull request?\n\nThis PR proposes to make StreamingQueryListener.spark settable\n\n### Why are the changes needed?\n\n```python\nfrom pyspark.sql.streaming.listener import StreamingQueryListener\n\nclass MyListener(StreamingQueryListener):\n def __init__(self, spark):\n self.spark = spark\n\n def onQueryStarted(self, event):\n pass\n\n def onQueryProgress(self, event):\n pass\n\n def onQueryTerminated(self, event):\n pass\n\nMyListener(spark)\n```\n\nis broken from 3.5.0 after SPARK-42941.\n\n### Does this PR introduce _any_ user-facing change?\n\nYes, end users who implement `StreamingQueryListener` can add `spark` attribute in their implementation.\n\n### How was this patch tested?\n\nManually tested, and added a unittest.\n\n### Was this patch authored or co-authored using generative AI tooling?\n\nNo.\n\nCloses #46909 from HyukjinKwon/compat-spark-prop.\n\nAuthored-by: Hyukjin Kwon \nSigned-off-by: Hyukjin Kwon ","shortMessageHtmlLink":"[SPARK-48560][SS][PYTHON] Make StreamingQueryListener.spark settable"}},{"before":"201df0d7ac81f6bd5c39f513b0a06cb659dc9a3f","after":"24bce72c9065336a962fe76feeb14fa2119ef961","ref":"refs/heads/master","pushedAt":"2024-06-09T14:22:30.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"sunchao","name":"Chao Sun","path":"/sunchao","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/506679?s=80&v=4"},"commit":{"message":"[SPARK-48012][SQL] SPJ: Support Transfrom Expressions for One Side Shuffle\n\n### Why are the changes needed?\n\nSupport SPJ one-side shuffle if other side has partition transform expression\n\n ### How was this patch tested?\n\nNew unit test in KeyGroupedPartitioningSuite\n\n ### Was this patch authored or co-authored using generative AI tooling?\n\n No.\n\nCloses #46255 from szehon-ho/spj_auto_bucket.\n\nAuthored-by: Szehon Ho \nSigned-off-by: Chao Sun ","shortMessageHtmlLink":"[SPARK-48012][SQL] SPJ: Support Transfrom Expressions for One Side Sh…"}},{"before":"8911d59005e81062c3a515531b03dcf3478db82a","after":"201df0d7ac81f6bd5c39f513b0a06cb659dc9a3f","ref":"refs/heads/master","pushedAt":"2024-06-07T23:49:25.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"zhengruifeng","name":"Ruifeng Zheng","path":"/zhengruifeng","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7322292?s=80&v=4"},"commit":{"message":"[MINOR][PYTHON][TESTS] Move a test out of parity tests\n\n### What changes were proposed in this pull request?\nMove a test out of parity tests\n\n### Why are the changes needed?\nit is not tested in Spark Classic, not a parity test\n\n### Does this PR introduce _any_ user-facing change?\nno\n\n### How was this patch tested?\nci\n\n### Was this patch authored or co-authored using generative AI tooling?\nno\n\nCloses #46914 from zhengruifeng/move_a_non_parity_test.\n\nAuthored-by: Ruifeng Zheng \nSigned-off-by: Ruifeng Zheng ","shortMessageHtmlLink":"[MINOR][PYTHON][TESTS] Move a test out of parity tests"}},{"before":"d81b1e3d358c7c9b3992413b6c7078c92ae9072f","after":"8911d59005e81062c3a515531b03dcf3478db82a","ref":"refs/heads/master","pushedAt":"2024-06-07T20:56:43.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"cloud-fan","name":"Wenchen Fan","path":"/cloud-fan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3182036?s=80&v=4"},"commit":{"message":"[SPARK-46393][SQL][FOLLOWUP] Classify exceptions in JDBCTableCatalog.loadTable and Fix UT\n\n### What changes were proposed in this pull request?\nThis is a followup of https://github.com/apache/spark/pull/46905, to fix `some UT` on GA.\n\n### Why are the changes needed?\nFix UT.\n\n### Does this PR introduce _any_ user-facing change?\nNo.,\n\n### How was this patch tested?\nManually test.\nPass GA\n\n### Was this patch authored or co-authored using generative AI tooling?\nNo.\n\nCloses #46912 from panbingkun/SPARK-46393_FOLLOWUP.\n\nLead-authored-by: panbingkun \nCo-authored-by: Wenchen Fan \nSigned-off-by: Wenchen Fan ","shortMessageHtmlLink":"[SPARK-46393][SQL][FOLLOWUP] Classify exceptions in JDBCTableCatalog.…"}},{"before":"87b0f5995383173f6736695211994a1a26995192","after":"d81b1e3d358c7c9b3992413b6c7078c92ae9072f","ref":"refs/heads/master","pushedAt":"2024-06-07T08:54:01.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"cloud-fan","name":"Wenchen Fan","path":"/cloud-fan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3182036?s=80&v=4"},"commit":{"message":"[SPARK-48559][SQL] Fetch globalTempDatabase name directly without invoking initialization of GlobalaTempViewManager\n\n### What changes were proposed in this pull request?\n\nIt's not necessary to create `GlobalaTempViewManager` only for getting the global temp db name. This PR updates the code to avoid this, as global temp db name is just a config.\n\n### Why are the changes needed?\n\navoid unnecessary RPC calls to check existence of global temp db\n\n### Does this PR introduce _any_ user-facing change?\n\nno\n\n### How was this patch tested?\n\nexisting tests\n\n### Was this patch authored or co-authored using generative AI tooling?\n\nno\n\nCloses #46907 from willwwt/master.\n\nAuthored-by: Weitao Wen \nSigned-off-by: Wenchen Fan ","shortMessageHtmlLink":"[SPARK-48559][SQL] Fetch globalTempDatabase name directly without inv…"}},{"before":"b7d9c317aa2e4de8024e44db895fa8b0cbbb36db","after":"87b0f5995383173f6736695211994a1a26995192","ref":"refs/heads/master","pushedAt":"2024-06-07T08:37:09.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"zhengruifeng","name":"Ruifeng Zheng","path":"/zhengruifeng","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7322292?s=80&v=4"},"commit":{"message":"[SPARK-48561][PS][CONNECT] Throw `PandasNotImplementedError` for unsupported plotting functions\n\n### What changes were proposed in this pull request?\nThrow `PandasNotImplementedError` for unsupported plotting functions:\n- {Frame, Series}.plot.hist\n- {Frame, Series}.plot.kde\n- {Frame, Series}.plot.density\n- {Frame, Series}.plot(kind=\"hist\", ...)\n- {Frame, Series}.plot(kind=\"hist\", ...)\n- {Frame, Series}.plot(kind=\"density\", ...)\n\n### Why are the changes needed?\nthe previous error message is confusing:\n```\nIn [3]: psdf.plot.hist()\n/Users/ruifeng.zheng/Dev/spark/python/pyspark/pandas/utils.py:1017: PandasAPIOnSparkAdviceWarning: The config 'spark.sql.ansi.enabled' is set to True. This can cause unexpected behavior from pandas API on Spark since pandas API on Spark follows the behavior of pandas, not SQL.\n warnings.warn(message, PandasAPIOnSparkAdviceWarning)\n[*********************************************-----------------------------------] 57.14% Complete (0 Tasks running, 1s, Scanned[*********************************************-----------------------------------] 57.14% Complete (0 Tasks running, 1s, Scanned[*********************************************-----------------------------------] 57.14% Complete (0 Tasks running, 1s, Scanned ---------------------------------------------------------------------------\nPySparkAttributeError Traceback (most recent call last)\nCell In[3], line 1\n----> 1 psdf.plot.hist()\n\nFile ~/Dev/spark/python/pyspark/pandas/plot/core.py:951, in PandasOnSparkPlotAccessor.hist(self, bins, **kwds)\n 903 def hist(self, bins=10, **kwds):\n 904 \"\"\"\n 905 Draw one histogram of the DataFrame’s columns.\n 906 A `histogram`_ is a representation of the distribution of data.\n (...)\n 949 >>> df.plot.hist(bins=12, alpha=0.5) # doctest: +SKIP\n 950 \"\"\"\n--> 951 return self(kind=\"hist\", bins=bins, **kwds)\n\nFile ~/Dev/spark/python/pyspark/pandas/plot/core.py:580, in PandasOnSparkPlotAccessor.__call__(self, kind, backend, **kwargs)\n 577 kind = {\"density\": \"kde\"}.get(kind, kind)\n 578 if hasattr(plot_backend, \"plot_pandas_on_spark\"):\n 579 # use if there's pandas-on-Spark specific method.\n--> 580 return plot_backend.plot_pandas_on_spark(plot_data, kind=kind, **kwargs)\n 581 else:\n 582 # fallback to use pandas'\n 583 if not PandasOnSparkPlotAccessor.pandas_plot_data_map[kind]:\n\nFile ~/Dev/spark/python/pyspark/pandas/plot/plotly.py:41, in plot_pandas_on_spark(data, kind, **kwargs)\n 39 return plot_pie(data, **kwargs)\n 40 if kind == \"hist\":\n---> 41 return plot_histogram(data, **kwargs)\n 42 if kind == \"box\":\n 43 return plot_box(data, **kwargs)\n\nFile ~/Dev/spark/python/pyspark/pandas/plot/plotly.py:87, in plot_histogram(data, **kwargs)\n 85 psdf, bins = HistogramPlotBase.prepare_hist_data(data, bins)\n 86 assert len(bins) > 2, \"the number of buckets must be higher than 2.\"\n---> 87 output_series = HistogramPlotBase.compute_hist(psdf, bins)\n 88 prev = float(\"%.9f\" % bins[0]) # to make it prettier, truncate.\n 89 text_bins = []\n\nFile ~/Dev/spark/python/pyspark/pandas/plot/core.py:189, in HistogramPlotBase.compute_hist(psdf, bins)\n 183 for group_id, (colname, bucket_name) in enumerate(zip(colnames, bucket_names)):\n 184 # creates a Bucketizer to get corresponding bin of each value\n 185 bucketizer = Bucketizer(\n 186 splits=bins, inputCol=colname, outputCol=bucket_name, handleInvalid=\"skip\"\n 187 )\n--> 189 bucket_df = bucketizer.transform(sdf)\n 191 if output_df is None:\n 192 output_df = bucket_df.select(\n 193 F.lit(group_id).alias(\"__group_id\"), F.col(bucket_name).alias(\"__bucket\")\n 194 )\n\nFile ~/Dev/spark/python/pyspark/ml/base.py:260, in Transformer.transform(self, dataset, params)\n 258 return self.copy(params)._transform(dataset)\n 259 else:\n--> 260 return self._transform(dataset)\n 261 else:\n 262 raise TypeError(\"Params must be a param map but got %s.\" % type(params))\n\nFile ~/Dev/spark/python/pyspark/ml/wrapper.py:412, in JavaTransformer._transform(self, dataset)\n 409 assert self._java_obj is not None\n 411 self._transfer_params_to_java()\n--> 412 return DataFrame(self._java_obj.transform(dataset._jdf), dataset.sparkSession)\n\nFile ~/Dev/spark/python/pyspark/sql/connect/dataframe.py:1696, in DataFrame.__getattr__(self, name)\n 1694 def __getattr__(self, name: str) -> \"Column\":\n 1695 if name in [\"_jseq\", \"_jdf\", \"_jmap\", \"_jcols\", \"rdd\", \"toJSON\"]:\n-> 1696 raise PySparkAttributeError(\n 1697 error_class=\"JVM_ATTRIBUTE_NOT_SUPPORTED\", message_parameters={\"attr_name\": name}\n 1698 )\n 1700 if name not in self.columns:\n 1701 raise PySparkAttributeError(\n 1702 error_class=\"ATTRIBUTE_NOT_SUPPORTED\", message_parameters={\"attr_name\": name}\n 1703 )\n\nPySparkAttributeError: [JVM_ATTRIBUTE_NOT_SUPPORTED] Attribute `_jdf` is not supported in Spark Connect as it depends on the JVM. If you need to use this attribute, do not use Spark Connect when creating your session. Visit https://spark.apache.org/docs/latest/sql-getting-started.html#starting-point-sparksession for creating regular Spark Session in detail.\n```\n\nafter this PR:\n```\nIn [3]: psdf.plot.hist()\n---------------------------------------------------------------------------\nPandasNotImplementedError Traceback (most recent call last)\nCell In[3], line 1\n----> 1 psdf.plot.hist()\n\nFile ~/Dev/spark/python/pyspark/pandas/plot/core.py:957, in PandasOnSparkPlotAccessor.hist(self, bins, **kwds)\n 909 \"\"\"\n 910 Draw one histogram of the DataFrame’s columns.\n 911 A `histogram`_ is a representation of the distribution of data.\n (...)\n 954 >>> df.plot.hist(bins=12, alpha=0.5) # doctest: +SKIP\n 955 \"\"\"\n 956 if is_remote():\n--> 957 return unsupported_function(class_name=\"pd.DataFrame\", method_name=\"hist\")()\n 959 return self(kind=\"hist\", bins=bins, **kwds)\n\nFile ~/Dev/spark/python/pyspark/pandas/missing/__init__.py:23, in unsupported_function..unsupported_function(*args, **kwargs)\n 22 def unsupported_function(*args, **kwargs):\n---> 23 raise PandasNotImplementedError(\n 24 class_name=class_name, method_name=method_name, reason=reason\n 25 )\n\nPandasNotImplementedError: The method `pd.DataFrame.hist()` is not implemented yet.\n```\n\n### Does this PR introduce _any_ user-facing change?\nyes, error message improvement\n\n### How was this patch tested?\nCI\n\n### Was this patch authored or co-authored using generative AI tooling?\nNo\n\nCloses #46911 from zhengruifeng/ps_plotting_unsupported.\n\nAuthored-by: Ruifeng Zheng \nSigned-off-by: Ruifeng Zheng ","shortMessageHtmlLink":"[SPARK-48561][PS][CONNECT] Throw PandasNotImplementedError for unsu…"}},{"before":"94912920b0e92c9470bdb27a409799d0fe48ff69","after":"b7d9c317aa2e4de8024e44db895fa8b0cbbb36db","ref":"refs/heads/master","pushedAt":"2024-06-07T08:32:02.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"yaooqinn","name":"Kent Yao","path":"/yaooqinn","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/8326978?s=80&v=4"},"commit":{"message":"Revert \"[SPARK-46393][SQL][FOLLOWUP] Classify exceptions in JDBCTableCatalog.loadTable\"\n\nThis reverts commit 82b4ad2af64845503604da70ff02748c3969c991.","shortMessageHtmlLink":"Revert \"[SPARK-46393][SQL][FOLLOWUP] Classify exceptions in JDBCTable…"}},{"before":"82b4ad2af64845503604da70ff02748c3969c991","after":"94912920b0e92c9470bdb27a409799d0fe48ff69","ref":"refs/heads/master","pushedAt":"2024-06-07T02:14:30.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"yaooqinn","name":"Kent Yao","path":"/yaooqinn","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/8326978?s=80&v=4"},"commit":{"message":"[SPARK-48548][BUILD] Add LICENSE/NOTICE for spark-core with shaded dependencies\n\n### What changes were proposed in this pull request?\n\nThe core module shipped with some bundled dependencies, it's better to add LICENSE/NOTICE to conform to the ASF policies.\n\n### Why are the changes needed?\n\nASF legal compliance\n\n### Does this PR introduce _any_ user-facing change?\n\nno\n### How was this patch tested?\n\npass build\n\n### Was this patch authored or co-authored using generative AI tooling?\n\nno\n\nCloses #46891 from yaooqinn/SPARK-48548.\n\nAuthored-by: Kent Yao \nSigned-off-by: Kent Yao ","shortMessageHtmlLink":"[SPARK-48548][BUILD] Add LICENSE/NOTICE for spark-core with shaded de…"}},{"before":"56b9b134041b117e826a767b71841fd6d3f7602c","after":"82b4ad2af64845503604da70ff02748c3969c991","ref":"refs/heads/master","pushedAt":"2024-06-07T02:11:46.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"yaooqinn","name":"Kent Yao","path":"/yaooqinn","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/8326978?s=80&v=4"},"commit":{"message":"[SPARK-46393][SQL][FOLLOWUP] Classify exceptions in JDBCTableCatalog.loadTable\n\n### What changes were proposed in this pull request?\n\nThis is a followup of https://github.com/apache/spark/pull/44335 , which missed to handle `loadTable`\n\n### Why are the changes needed?\n\nbetter error message\n\n### Does this PR introduce _any_ user-facing change?\n\nno\n\n### How was this patch tested?\n\nexisting test\n\n### Was this patch authored or co-authored using generative AI tooling?\n\nno\n\nCloses #46905 from cloud-fan/jdbc.\n\nAuthored-by: Wenchen Fan \nSigned-off-by: Kent Yao ","shortMessageHtmlLink":"[SPARK-46393][SQL][FOLLOWUP] Classify exceptions in JDBCTableCatalog.…"}},{"before":"9de0a2eca9ce0965350d19d207f6db01b7081b27","after":"56b9b134041b117e826a767b71841fd6d3f7602c","ref":"refs/heads/master","pushedAt":"2024-06-07T02:07:56.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"HyukjinKwon","name":"Hyukjin Kwon","path":"/HyukjinKwon","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/6477701?s=80&v=4"},"commit":{"message":"[SPARK-48552][SQL] multi-line CSV schema inference should also throw FAILED_READ_FILE\n\n### What changes were proposed in this pull request?\n\nmulti-line CSV uses `BinaryFileRDD` instead of `FileScanRDD`, and we need to replicate the error handling code from `FileScanRDD`. Currently we already replicate the handling of ignore missing/corrupted files, and this PR replicates the error wrapping code.\n\n### Why are the changes needed?\n\nto have consistent error message\n\n### Does this PR introduce _any_ user-facing change?\n\nNo\n\n### How was this patch tested?\n\nupdated test\n\n### Was this patch authored or co-authored using generative AI tooling?\n\nno\n\nCloses #46890 from cloud-fan/error.\n\nLead-authored-by: Wenchen Fan \nCo-authored-by: Wenchen Fan \nSigned-off-by: Hyukjin Kwon ","shortMessageHtmlLink":"[SPARK-48552][SQL] multi-line CSV schema inference should also throw …"}},{"before":"cf3051b181318bb05486fbe37c94c0ef70e355be","after":"9de0a2eca9ce0965350d19d207f6db01b7081b27","ref":"refs/heads/master","pushedAt":"2024-06-07T00:15:00.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"HyukjinKwon","name":"Hyukjin Kwon","path":"/HyukjinKwon","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/6477701?s=80&v=4"},"commit":{"message":"[SPARK-42944][FOLLOWUP][SS][CONNECT] Reenable ApplyInPandasWithState tests\n\n### What changes were proposed in this pull request?\n\nThe tests for ApplyInPandasWithState was skipped in connect before. This was because the tests uses foreachBatch, which was not ready when the development is done. So they were skipped. This PR reenables them.\n\n### Why are the changes needed?\n\nNecessary tests\n\n### Does this PR introduce _any_ user-facing change?\n\nNo\n\n### How was this patch tested?\n\nTest only addition.\n\n### Was this patch authored or co-authored using generative AI tooling?\n\nNo\n\nCloses #46853 from WweiL/apply-in-pandas-with-state-test.\n\nAuthored-by: Wei Liu \nSigned-off-by: Hyukjin Kwon ","shortMessageHtmlLink":"[SPARK-42944][FOLLOWUP][SS][CONNECT] Reenable ApplyInPandasWithState …"}},{"before":"3c4cb407b5ca6fa9ec960cf4a0667ea39ff59393","after":"cf3051b181318bb05486fbe37c94c0ef70e355be","ref":"refs/heads/master","pushedAt":"2024-06-07T00:10:50.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"HyukjinKwon","name":"Hyukjin Kwon","path":"/HyukjinKwon","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/6477701?s=80&v=4"},"commit":{"message":"[MINOR][PYTHON] add export class and fix doc typo for python streaming data source\n\n### What changes were proposed in this pull request?\nAdd SimpleDataSourceStreamReader to default export class.\nFix the typo in python_data_source.dst\n\n### Why are the changes needed?\nTo improve user experience.\n\n### Does this PR introduce _any_ user-facing change?\nno.\n\n### How was this patch tested?\nCovered by existing test.\n\n### Was this patch authored or co-authored using generative AI tooling?\nNo.\n\nCloses #46903 from chaoqin-li1123/fix_export.\n\nAuthored-by: Chaoqin Li \nSigned-off-by: Hyukjin Kwon ","shortMessageHtmlLink":"[MINOR][PYTHON] add export class and fix doc typo for python streamin…"}},{"before":"edb9236ea688ca0627e3c8a68f4a87e5689e2f9a","after":"3c4cb407b5ca6fa9ec960cf4a0667ea39ff59393","ref":"refs/heads/master","pushedAt":"2024-06-07T00:02:20.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"HyukjinKwon","name":"Hyukjin Kwon","path":"/HyukjinKwon","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/6477701?s=80&v=4"},"commit":{"message":"[SPARK-47952][CORE][CONNECT] Support retrieving the real SparkConnectService GRPC address and port programmatically when running on Yarn\n\n### What changes were proposed in this pull request?\n1. Add configuration `spark.connect.grpc.port.maxRetries` (default 0, no retries).\n\n [Before this PR]: The SparkConnectService would fail to start in case of port conflicts on Yarn.\n [After this PR]: Allow the internal GRPC server to retry new ports until it finds an available port before reaching the maxRetries.\n\n2. Post SparkListenerEvent containing the location of the remote SparkConnectService on Yarn.\n\n [Before this PR]: We needed to manually find the final location (host and port) of the SparkConnectService on Yarn and then use the SparkConnect Client to connect.\n [After this PR]: The location will be posted via SparkListenerEvent\n `SparkListenerConnectServiceStarted`\n `SparkListenerConnectServiceEnd`\n Allowing users to register a listener to receive this event and expose it by some way like sending it to a third coordinator server.\n\n3. Shutdown SparkPlugins before stopping the ListenerBus.\n\n [Before this PR]: If the SparkConnectService was launched in the SparkConnectPlugin way, currently the SparkPlugins would be shutdown after the stop of ListenerBus, causing events posted during the shutdown to not be delivered to the listener.\n [After this PR]: The SparkPlugins will be shutdown before the stop of ListenerBus, ensuring that the ListenerBus remains active during the shutdown and the listener can receive the SparkConnectService stop event.\n\n4. Minor method refactoring for 1~3.\n\n### Why are the changes needed?\n#User Story:\nOur data analysts and data scientists use Jupyter notebooks provisioned on Kubernetes (k8s) with limited CPU/memory resources to run Spark-shell/pyspark for interactively development via terminal under Yarn Client mode.\n\nHowever, Yarn Client mode consumes significant local memory if the job is heavy, and the total resource pool of k8s for notebooks is limited.\n\nTo leverage the abundant resources of our Hadoop cluster for scalability purposes, we aim to utilize SparkConnect.\nThis allows the driver on Yarn with SparkConnectService started and uses SparkConnect client to connect to the remote driver.\n\nTo provide a seamless experience with one command startup for both server and client, we've wrapped the following processes in one script:\n\n1) Start a local coordinator server (implemented by us internally, not in this PR) in the host of jupyter notebook.\n2) Start SparkConnectServer by spark-submit via Yarn Cluster mode with user-input Spark configurations and the local coordinator server's address and port.\n Append an additional listener class in the configuration for SparkConnectService callback with the actual address and port on Yarn to the coordinator server.\n3) Wait for the coordinator server to receive the address callback from the SparkConnectService on Yarn and export the real address.\n4) Start the client (pyspark --remote $callback_address) with the remote address.\n\nFinally, a remote SparkConnect Server is started on Yarn with a local SparkConnect client connected. Users no longer need to start the server beforehand and connect to the remote server after they manually explore the address on Yarn.\n\n#Problem statement of this change:\n1) The specified port for the SparkConnectService GRPC server might be occupied on the node of the Hadoop Cluster.\n To increase the success rate of startup, it needs to retry on conflicts rather than fail directly.\n2) Because the final binding port could be uncertain based on 1) when retry and the remote address is also unpredictable on Yarn, we need to retrieve the address and port programmatically and inject it automatically on the start of 'pyspark --remote'. To get the address of SparkConnectService on Yarn programmatically, the SparkConnectService needs to communicate its location back to the launcher side.\n\n### Does this PR introduce _any_ user-facing change?\n1. Add configuration `spark.connect.grpc.port.maxRetries` to enable port retries until an available port is found before reaching the maximum number of retries.\n\n3. The start and stop events of the SparkConnectService are observable through the SparkListener.\n Two new events have been introduced:\n - SparkListenerConnectServiceStarted: the SparkConnectService(with address and port) tis online for serving\n - SparkListenerConnectServiceEnd: the SparkConnectService(with address and port) is offline\n\n### How was this patch tested?\nBy UT and verified the feature in our production environment by our binary build\n\n### Was this patch authored or co-authored using generative AI tooling?\nNo\n\nCloses #46182 from TakawaAkirayo/SPARK-47952.\n\nLead-authored-by: tatian \nCo-authored-by: TakawaAkirayo <153728772+TakawaAkirayo@users.noreply.github.com>\nSigned-off-by: Hyukjin Kwon ","shortMessageHtmlLink":"[SPARK-47952][CORE][CONNECT] Support retrieving the real SparkConnect…"}},{"before":"ce1b08f6e30b1c6fba364a41a75b979017ffe7ef","after":"edb9236ea688ca0627e3c8a68f4a87e5689e2f9a","ref":"refs/heads/master","pushedAt":"2024-06-06T23:30:58.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"zhengruifeng","name":"Ruifeng Zheng","path":"/zhengruifeng","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7322292?s=80&v=4"},"commit":{"message":"[SPARK-48504][PYTHON][CONNECT][FOLLOW-UP] Code clean up\n\n### What changes were proposed in this pull request?\nCode clean up\n\n### Why are the changes needed?\nCode clean up\n\n### Does this PR introduce _any_ user-facing change?\nNo\n\n### How was this patch tested?\nCI\n\n### Was this patch authored or co-authored using generative AI tooling?\nNo\n\nCloses #46898 from zhengruifeng/win_refactor.\n\nAuthored-by: Ruifeng Zheng \nSigned-off-by: Ruifeng Zheng ","shortMessageHtmlLink":"[SPARK-48504][PYTHON][CONNECT][FOLLOW-UP] Code clean up"}},{"before":"0f21df0b29cc18f0e0c7b12543f3a037e4032e65","after":"ce1b08f6e30b1c6fba364a41a75b979017ffe7ef","ref":"refs/heads/master","pushedAt":"2024-06-06T23:15:55.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"zhengruifeng","name":"Ruifeng Zheng","path":"/zhengruifeng","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7322292?s=80&v=4"},"commit":{"message":"[SPARK-48553][PYTHON][CONNECT] Cache more properties\n\n### What changes were proposed in this pull request?\nCache more properties:\n\n- Dataframe.isEmpty\n- Dataframe.isLocal\n- Dataframe.inputFiles\n- Dataframe.semanticHash\n- Dataframe.explain\n- SparkSession.version\n\n### Why are the changes needed?\nto avoid unnecessary RPCs\n\n### Does this PR introduce _any_ user-facing change?\nno\n\n### How was this patch tested?\nci\n\n### Was this patch authored or co-authored using generative AI tooling?\nno\n\nCloses #46896 from zhengruifeng/df_cache_more.\n\nAuthored-by: Ruifeng Zheng \nSigned-off-by: Ruifeng Zheng ","shortMessageHtmlLink":"[SPARK-48553][PYTHON][CONNECT] Cache more properties"}},{"before":"d3a324d63f82ffc4a4818bb1bfe7485d12f1dada","after":"a00c11546273089dbfa993fa4c170eb70beecbc3","ref":"refs/heads/branch-3.5","pushedAt":"2024-06-06T20:10:13.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"cloud-fan","name":"Wenchen Fan","path":"/cloud-fan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3182036?s=80&v=4"},"commit":{"message":"[SPARK-48286] Fix analysis of column with exists default expression - Add user facing error\n\nFIRST CHANGE\n\nPass correct parameter list to `org.apache.spark.sql.catalyst.util.ResolveDefaultColumns#analyze` when it is invoked from `org.apache.spark.sql.connector.catalog.CatalogV2Util#structFieldToV2Column`.\n\n`org.apache.spark.sql.catalyst.util.ResolveDefaultColumns#analyze` method accepts 3 parameter\n\n1) Field to analyze\n2) Statement type - String\n3) Metadata key - CURRENT_DEFAULT or EXISTS_DEFAULT\n\nMethod `org.apache.spark.sql.connector.catalog.CatalogV2Util#structFieldToV2Column`\npass `fieldToAnalyze` and `EXISTS_DEFAULT` as second parameter, so it is not metadata key, instead of that, it is statement type, so different expression is analyzed.\n\nPull requests where original change was introduced\nhttps://github.com/apache/spark/pull/40049 - Initial commit\nhttps://github.com/apache/spark/pull/44876 - Refactor that did not touch the issue\nhttps://github.com/apache/spark/pull/44935 - Another refactor that did not touch the issue\n\nSECOND CHANGE\nAdd user facing exception when default value is not foldable or resolved. Otherwise, user would see message \"You hit a bug in Spark ...\".\nIt is needed to pass correct value to `Column` object\n\nYes, this is a bug fix, existence default value has now proper expression, but before this change, existence default value was actually current default value of column.\n\nUnit test\n\nNo\n\nCloses #46594 from urosstan-db/SPARK-48286-Analyze-exists-default-expression-instead-of-current-default-expression.\n\nLead-authored-by: Uros Stankovic \nCo-authored-by: Uros Stankovic <155642965+urosstan-db@users.noreply.github.com>\nSigned-off-by: Wenchen Fan \n(cherry picked from commit 0f21df0b29cc18f0e0c7b12543f3a037e4032e65)\nSigned-off-by: Wenchen Fan ","shortMessageHtmlLink":"[SPARK-48286] Fix analysis of column with exists default expression -…"}},{"before":"84fa0527834b947ad12e4a6398512c75929cc99b","after":"0f21df0b29cc18f0e0c7b12543f3a037e4032e65","ref":"refs/heads/master","pushedAt":"2024-06-06T20:08:57.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"cloud-fan","name":"Wenchen Fan","path":"/cloud-fan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3182036?s=80&v=4"},"commit":{"message":"[SPARK-48286] Fix analysis of column with exists default expression - Add user facing error\n\n### What changes were proposed in this pull request?\n\nFIRST CHANGE\n\nPass correct parameter list to `org.apache.spark.sql.catalyst.util.ResolveDefaultColumns#analyze` when it is invoked from `org.apache.spark.sql.connector.catalog.CatalogV2Util#structFieldToV2Column`.\n\n`org.apache.spark.sql.catalyst.util.ResolveDefaultColumns#analyze` method accepts 3 parameter\n\n1) Field to analyze\n2) Statement type - String\n3) Metadata key - CURRENT_DEFAULT or EXISTS_DEFAULT\n\nMethod `org.apache.spark.sql.connector.catalog.CatalogV2Util#structFieldToV2Column`\npass `fieldToAnalyze` and `EXISTS_DEFAULT` as second parameter, so it is not metadata key, instead of that, it is statement type, so different expression is analyzed.\n\nPull requests where original change was introduced\nhttps://github.com/apache/spark/pull/40049 - Initial commit\nhttps://github.com/apache/spark/pull/44876 - Refactor that did not touch the issue\nhttps://github.com/apache/spark/pull/44935 - Another refactor that did not touch the issue\n\nSECOND CHANGE\nAdd user facing exception when default value is not foldable or resolved. Otherwise, user would see message \"You hit a bug in Spark ...\".\n### Why are the changes needed?\nIt is needed to pass correct value to `Column` object\n\n### Does this PR introduce _any_ user-facing change?\nYes, this is a bug fix, existence default value has now proper expression, but before this change, existence default value was actually current default value of column.\n\n### How was this patch tested?\nUnit test\n\n### Was this patch authored or co-authored using generative AI tooling?\nNo\n\nCloses #46594 from urosstan-db/SPARK-48286-Analyze-exists-default-expression-instead-of-current-default-expression.\n\nLead-authored-by: Uros Stankovic \nCo-authored-by: Uros Stankovic <155642965+urosstan-db@users.noreply.github.com>\nSigned-off-by: Wenchen Fan ","shortMessageHtmlLink":"[SPARK-48286] Fix analysis of column with exists default expression -…"}},{"before":"b5a4b32003624261c4a9175b2f5eed748f948cbf","after":"84fa0527834b947ad12e4a6398512c75929cc99b","ref":"refs/heads/master","pushedAt":"2024-06-06T19:05:31.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"cloud-fan","name":"Wenchen Fan","path":"/cloud-fan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3182036?s=80&v=4"},"commit":{"message":"[SPARK-48283][SQL] Modify string comparison for UTF8_BINARY_LCASE\n\n### What changes were proposed in this pull request?\nString comparison and hashing in UTF8_BINARY_LCASE is now context-unaware, and uses ICU root locale rules to convert string to lowercase at code point level, taking into consideration special cases for one-to-many case mapping. For example: comparing \"ΘΑΛΑΣΣΙΝΟΣ\" and \"θαλασσινοσ\" under UTF8_BINARY_LCASE now returns true, because Greek final sigma is special-cased in the new comparison implementation.\n\n### Why are the changes needed?\n1. UTF8_BINARY_LCASE should use ICU root locale rules (instead of JVM)\n2. comparing strings under UTF8_BINARY_LCASE should be context-insensitive\n\n### Does this PR introduce _any_ user-facing change?\nYes, comparing strings under UTF8_BINARY_LCASE will now give different results in two kinds of special cases (Turkish dotted letter \"i\" and Greek final letter \"sigma\").\n\n### How was this patch tested?\nUnit tests in `CollationSupportSuite`.\n\n### Was this patch authored or co-authored using generative AI tooling?\nNo.\n\nCloses #46700 from uros-db/lcase-casing.\n\nAuthored-by: Uros Bojanic <157381213+uros-db@users.noreply.github.com>\nSigned-off-by: Wenchen Fan ","shortMessageHtmlLink":"[SPARK-48283][SQL] Modify string comparison for UTF8_BINARY_LCASE"}},{"before":"3878b57e6e88631826c1c8690eb9052e5efa5aa1","after":"b5a4b32003624261c4a9175b2f5eed748f948cbf","ref":"refs/heads/master","pushedAt":"2024-06-06T19:02:02.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"cloud-fan","name":"Wenchen Fan","path":"/cloud-fan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3182036?s=80&v=4"},"commit":{"message":"[SPARK-48435][SQL] UNICODE collation should not support binary equality\n\n### What changes were proposed in this pull request?\nCollationFactory has been updated to no longer mark UNICODE as collation that supportsBinaryCollation. To reflect these changes, various tests have been updated.\n\nHowever, some tests have been (temporarily) removed because StringTrim no longer supports UNICODE collation given the new UNICODE definition in CollationFactory. At this time, StringTrim expression only supports UTF8_BINARY & UTF8_BINARY_LCASE, but not ICU collations. This work is in progress (https://github.com/apache/spark/pull/46762), so we'll ensure appropriate test coverage with those changes.\n\n### Why are the changes needed?\nUNICODE collation should not support binary collation. Note: in the future, we may want to consider a collation such as UNICODE_BINARY, which will support binary equality, but also maintain UNICODE ordering.\n\n### Does this PR introduce _any_ user-facing change?\nYes, UNICODE is no longer treated as a binary collation. This affects how equality works for UNICODE, and also which codepath is taken for various collation-aware string expression given UNICODE collated string arguments.\n\n### How was this patch tested?\nUpdated existing unit and e2e sql test for UNICODE collation.\n\n### Was this patch authored or co-authored using generative AI tooling?\nNo.\n\nCloses #46772 from uros-db/fix-unicode.\n\nAuthored-by: Uros Bojanic <157381213+uros-db@users.noreply.github.com>\nSigned-off-by: Wenchen Fan ","shortMessageHtmlLink":"[SPARK-48435][SQL] UNICODE collation should not support binary equality"}},{"before":"9f4007f3d89eb442df63a3b8bd9fd510bf7e2edd","after":"3878b57e6e88631826c1c8690eb9052e5efa5aa1","ref":"refs/heads/master","pushedAt":"2024-06-06T18:19:58.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"cloud-fan","name":"Wenchen Fan","path":"/cloud-fan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3182036?s=80&v=4"},"commit":{"message":"[SPARK-48526][SS] Allow passing custom sink to testStream()\n\n### What changes were proposed in this pull request?\nUpdate `StreamTest:testStream()` to allow passing a custom sink. This allows writing better tests covering streaming sinks, in particular:\n- reusing a sink across calls to testStream.\n- passing a custom sink implementation.\n\n### Why are the changes needed?\nBetter testing infrastructure.\n\n### Does this PR introduce _any_ user-facing change?\nNo\n\n### How was this patch tested?\nN/A\n\n### Was this patch authored or co-authored using generative AI tooling?\nNo\n\nCloses #46866 from johanl-db/allow-passing-custom-sink-stream-test.\n\nAuthored-by: Johan Lasperas \nSigned-off-by: Wenchen Fan ","shortMessageHtmlLink":"[SPARK-48526][SS] Allow passing custom sink to testStream()"}},{"before":"7cba1ab4d6acef4e9d73a8e6018b0902aac3a18d","after":"9f4007f3d89eb442df63a3b8bd9fd510bf7e2edd","ref":"refs/heads/master","pushedAt":"2024-06-06T18:18:28.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"cloud-fan","name":"Wenchen Fan","path":"/cloud-fan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3182036?s=80&v=4"},"commit":{"message":"[SPARK-48546][SQL] Fix ExpressionEncoder after replacing NullPointerExceptions with proper error classes in AssertNotNull expression\n\n### What changes were proposed in this pull request?\n\nIn https://github.com/apache/spark/pull/46793, we replaced NullPointerExceptions with proper error classes in AssertNotNull expression. However, that PR forgot to update the `ExpressionEncoder` to check for these new error classes. This PR fixes it to make sure we use the new error classes in all cases.\n\n### Why are the changes needed?\n\nSee above\n\n### Does this PR introduce _any_ user-facing change?\n\nYes, see above\n\n### How was this patch tested?\n\nThis PR updates tests with the new error classes\n\n### Was this patch authored or co-authored using generative AI tooling?\n\nNo\n\nCloses #46888 from dtenedor/fix-expr-encoder.\n\nAuthored-by: Daniel Tenedorio \nSigned-off-by: Wenchen Fan ","shortMessageHtmlLink":"[SPARK-48546][SQL] Fix ExpressionEncoder after replacing NullPointerE…"}},{"before":"65db87697949ec247bcd38a38369c31bc2cdf3f1","after":"7cba1ab4d6acef4e9d73a8e6018b0902aac3a18d","ref":"refs/heads/master","pushedAt":"2024-06-06T16:42:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"dongjoon-hyun","name":"Dongjoon Hyun","path":"/dongjoon-hyun","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/9700541?s=80&v=4"},"commit":{"message":"[SPARK-48554][INFRA] Use R 4.4.0 in `windows` R GitHub Action Window job\n\n### What changes were proposed in this pull request?\nThis PR aims to use R 4.4.0 in `windows` R GitHub Action job.\n\n### Why are the changes needed?\nR 4.4.0 is the latest release which is released on 2024-04-24.\nhttps://www.r-project.org/\n\n### Does this PR introduce _any_ user-facing change?\nNo.\n\n### How was this patch tested?\nPass GA.\n\n### Was this patch authored or co-authored using generative AI tooling?\nNo.\n\nCloses #46897 from panbingkun/SPARK-48554.\n\nAuthored-by: panbingkun \nSigned-off-by: Dongjoon Hyun ","shortMessageHtmlLink":"[SPARK-48554][INFRA] Use R 4.4.0 in windows R GitHub Action Window job"}},{"before":"ab00533221e27bf5b1082baca33a3a64426dee8a","after":"65db87697949ec247bcd38a38369c31bc2cdf3f1","ref":"refs/heads/master","pushedAt":"2024-06-06T12:52:08.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"HeartSaVioR","name":"Jungtaek Lim","path":"/HeartSaVioR","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1317309?s=80&v=4"},"commit":{"message":"[SPARK-48513][SS] Add error class for state schema compatibility and minor refactoring\n\n### What changes were proposed in this pull request?\nAdd error class for state schema compatibility and minor refactoring\n\n### Why are the changes needed?\nAdd error class for state schema compatibility and minor refactoring so that these errors can be tracked using the NERF framework\n\n### Does this PR introduce _any_ user-facing change?\nNo\n\n### How was this patch tested?\nAdded new unit tests\n\n```\n[info] Run completed in 8 seconds, 250 milliseconds.\n[info] Total number of tests run: 29\n[info] Suites: completed 1, aborted 0\n[info] Tests: succeeded 29, failed 0, canceled 0, ignored 0, pending 0\n[info] All tests passed.\n```\n\n### Was this patch authored or co-authored using generative AI tooling?\nNo\n\nCloses #46856 from anishshri-db/task/SPARK-48513.\n\nAuthored-by: Anish Shrigondekar \nSigned-off-by: Jungtaek Lim ","shortMessageHtmlLink":"[SPARK-48513][SS] Add error class for state schema compatibility and …"}},{"before":"8cb78a7811f337309a72ff0ef29eefbb31d8bdc4","after":"ab00533221e27bf5b1082baca33a3a64426dee8a","ref":"refs/heads/master","pushedAt":"2024-06-06T11:51:21.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"zhengruifeng","name":"Ruifeng Zheng","path":"/zhengruifeng","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7322292?s=80&v=4"},"commit":{"message":"[SPARK-47933][PYTHON][TESTS][FOLLOW-UP] Enable doctest `pyspark.sql.connect.column`\n\n### What changes were proposed in this pull request?\nEnable doctest `pyspark.sql.connect.column`\n\n### Why are the changes needed?\ntest coverage\n\n### Does this PR introduce _any_ user-facing change?\nno, test only\n\n### How was this patch tested?\nmanually check:\n\nI manually broke some doctests in `Column`, then found `pyspark.sql.connect.column` didn't fail:\n```\n(spark_dev_312) ➜ spark git:(master) ✗ python/run-tests -k --python-executables python3 --testnames 'pyspark.sql.classic.column'\nRunning PySpark tests. Output is in /Users/ruifeng.zheng/Dev/spark/python/unit-tests.log\nWill test against the following Python executables: ['python3']\nWill test the following Python tests: ['pyspark.sql.classic.column']\npython3 python_implementation is CPython\npython3 version is: Python 3.12.2\nStarting test(python3): pyspark.sql.classic.column (temp output: /Users/ruifeng.zheng/Dev/spark/python/target/4bdd14b8-92ba-43ba-a7fb-655e6769aeb9/python3__pyspark.sql.classic.column__i2_c1zct.log)\nWARNING: Using incubator modules: jdk.incubator.vector\nSetting default log level to \"WARN\".\nTo adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).\n**********************************************************************\nFile \"/Users/ruifeng.zheng/Dev/spark/python/pyspark/sql/column.py\", line 385, in pyspark.sql.column.Column.contains\nFailed example:\n df.filter(df.name.contains('o')).collect()\nDifferences (ndiff with -expected +actual):\n - [Row(age=5, name='Bobx')]\n ? -\n + [Row(age=5, name='Bob')]\n**********************************************************************\n 1 of 2 in pyspark.sql.column.Column.contains\n***Test Failed*** 1 failures.\n\nHad test failures in pyspark.sql.classic.column with python3; see logs.\n(spark_dev_312) ➜ spark git:(master) ✗ python/run-tests -k --python-executables python3 --testnames 'pyspark.sql.connect.column'\nRunning PySpark tests. Output is in /Users/ruifeng.zheng/Dev/spark/python/unit-tests.log\nWill test against the following Python executables: ['python3']\nWill test the following Python tests: ['pyspark.sql.connect.column']\npython3 python_implementation is CPython\npython3 version is: Python 3.12.2\nStarting test(python3): pyspark.sql.connect.column (temp output: /Users/ruifeng.zheng/Dev/spark/python/target/2acaff3c-ef1d-41eb-b63e-509f3e0192c0/python3__pyspark.sql.connect.column__66td62h9.log)\nFinished test(python3): pyspark.sql.connect.column (3s)\nTests passed in 3 seconds\n```\n\nafter this PR, it fails as expected:\n```\n(spark_dev_312) ➜ spark git:(master) ✗ python/run-tests -k --python-executables python3 --testnames 'pyspark.sql.connect.column'\nRunning PySpark tests. Output is in /Users/ruifeng.zheng/Dev/spark/python/unit-tests.log\nWill test against the following Python executables: ['python3']\nWill test the following Python tests: ['pyspark.sql.connect.column']\npython3 python_implementation is CPython\npython3 version is: Python 3.12.2\nStarting test(python3): pyspark.sql.connect.column (temp output: /Users/ruifeng.zheng/Dev/spark/python/target/390ff7ae-7683-425c-b0d2-ee336e1ad452/python3__pyspark.sql.connect.column__f69b3smc.log)\nWARNING: Using incubator modules: jdk.incubator.vector\nSetting default log level to \"WARN\".\nTo adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).\norg.apache.spark.SparkSQLException: [INVALID_CURSOR.DISCONNECTED] The cursor is invalid. The cursor has been disconnected by the server. SQLSTATE: HY109\n\tat org.apache.spark.sql.connect.execution.ExecuteGrpcResponseSender.execute(ExecuteGrpcResponseSender.scala:281)\n\tat org.apache.spark.sql.connect.execution.ExecuteGrpcResponseSender$$anon$1.run(ExecuteGrpcResponseSender.scala:101)\n**********************************************************************\nFile \"/Users/ruifeng.zheng/Dev/spark/python/pyspark/sql/column.py\", line 385, in pyspark.sql.column.Column.contains\nFailed example:\n df.filter(df.name.contains('o')).collect()\nExpected:\n [Row(age=5, name='Bobx')]\nGot:\n [Row(age=5, name='Bob')]\n**********************************************************************\n 1 of 2 in pyspark.sql.column.Column.contains\n***Test Failed*** 1 failures.\n\nHad test failures in pyspark.sql.connect.column with python3; see logs.\n```\n\n### Was this patch authored or co-authored using generative AI tooling?\nNo\n\nCloses #46895 from zhengruifeng/fix_connect_column_doc_test.\n\nAuthored-by: Ruifeng Zheng \nSigned-off-by: Ruifeng Zheng ","shortMessageHtmlLink":"[SPARK-47933][PYTHON][TESTS][FOLLOW-UP] Enable doctest `pyspark.sql.c…"}},{"before":"f4434c36cc4f7b0147e0e8fe26ac0f177a5199cd","after":"8cb78a7811f337309a72ff0ef29eefbb31d8bdc4","ref":"refs/heads/master","pushedAt":"2024-06-06T11:16:17.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"HyukjinKwon","name":"Hyukjin Kwon","path":"/HyukjinKwon","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/6477701?s=80&v=4"},"commit":{"message":"[SPARK-48550][PS] Directly use the parent Window class\n\n### What changes were proposed in this pull request?\nDirectly use the parent Window class\n\n### Why are the changes needed?\nthe `get_window_class` method is no longer needed\n\n### Does this PR introduce _any_ user-facing change?\nno, refactor only\n\n### How was this patch tested?\nCI\n\n### Was this patch authored or co-authored using generative AI tooling?\nNo\n\nCloses #46892 from zhengruifeng/del_get_win_class.\n\nAuthored-by: Ruifeng Zheng \nSigned-off-by: Hyukjin Kwon ","shortMessageHtmlLink":"[SPARK-48550][PS] Directly use the parent Window class"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEYWzIsgA","startCursor":null,"endCursor":null}},"title":"Activity · apache/spark"}