Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package org.apache.spark.sql.execution

import java.io._
import java.io.{BufferedReader, File, InputStream, InputStreamReader, OutputStream}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I don't know why I thought it's more than 5+. It's more than 6+ (https://github.com/databricks/scala-style-guide#imports).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I don't know why I thought it's more than 5+. It's more than 6+ (https://github.com/databricks/scala-style-guide#imports).

Seems my local ideal's rule is 5, emmm I need to check this.

import java.nio.charset.StandardCharsets
import java.util.concurrent.TimeUnit

Expand Down
2 changes: 1 addition & 1 deletion sql/core/src/test/resources/test_script.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/python
#!/usr/bin/env python3

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,10 @@ abstract class BaseScriptTransformationSuite extends SparkPlanTest with SQLTestU
'd.cast("string"),
'e.cast("string")).collect())
}.getMessage
assert(e1.contains("Permission denied"))
// Check with status exit code since in GA test, it may lose detail failed root cause.
// Different root cause's exitcode is not same.
// In this test, root cause is `Permission denied`
assert(e1.contains("Subprocess exited with status 126"))

// test `/path/to/script.py' with script executable
scriptFilePath.setExecutable(true)
Expand Down