Skip to content

Conversation

@yaooqinn
Copy link
Member

@yaooqinn yaooqinn commented Jan 5, 2024

What changes were proposed in this pull request?

semicolon is not able to break SQLs in a file into separated statements

Why are the changes needed?

a followup for SPARK-46592

Does this PR introduce any user-facing change?

no

How was this patch tested?

Check the Oracle docker log

Before

STDOUT: CONTAINER: running /docker-entrypoint-initdb.d/install.sql ...
STDOUT: ALTER SESSION SET DDL_LOCK_TIMEOUT = 30;ALTER USER SYSTEM IDENTIFIED BY "Th1s1sThe0racle#Pass"
STDOUT: *
STDOUT: ERROR at line 1:
STDOUT: ORA-00922: missing or invalid option
STDOUT: Help: https://docs.oracle.com/error-help/db/ora-00922/

After

STDOUT: CONTAINER: DONE: running /docker-entrypoint-initdb.d/install.sql

STDOUT: Session altered.

STDOUT: User altered.

Was this patch authored or co-authored using generative AI tooling?

no

@yaooqinn yaooqinn marked this pull request as draft January 5, 2024 07:15
@github-actions github-actions bot added the SQL label Jan 5, 2024
@yaooqinn yaooqinn self-assigned this Jan 5, 2024
@yaooqinn
Copy link
Member Author

yaooqinn commented Jan 5, 2024

cc @dongjoon-hyun @MaxGekk @LuciferYang. Sorry for the mistake; I intended to test SPARK-46592 after I went home on my Mac with Intel chips, but I fell asleep early.

@yaooqinn yaooqinn marked this pull request as ready for review January 5, 2024 08:07
@MaxGekk
Copy link
Member

MaxGekk commented Jan 5, 2024

Docker tests passed.

+1, LGTM. Merging to master.
Thank you, @yaooqinn and @LuciferYang for review.

@MaxGekk MaxGekk closed this in 70b90c8 Jan 5, 2024
@yaooqinn yaooqinn deleted the SPARK-46592-F branch January 5, 2024 08:55
vinodkc pushed a commit to vinodkc/spark that referenced this pull request Jan 5, 2024
…reparation sql

### What changes were proposed in this pull request?

`semicolon` is not able to break SQLs in a file into separated statements

### Why are the changes needed?

a followup for SPARK-46592

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

Check the Oracle docker log

####  Before

```
STDOUT: CONTAINER: running /docker-entrypoint-initdb.d/install.sql ...
STDOUT: ALTER SESSION SET DDL_LOCK_TIMEOUT = 30;ALTER USER SYSTEM IDENTIFIED BY "Th1s1sThe0racle#Pass"
STDOUT: *
STDOUT: ERROR at line 1:
STDOUT: ORA-00922: missing or invalid option
STDOUT: Help: https://docs.oracle.com/error-help/db/ora-00922/
```

#### After
```
STDOUT: CONTAINER: DONE: running /docker-entrypoint-initdb.d/install.sql

STDOUT: Session altered.

STDOUT: User altered.

```

### Was this patch authored or co-authored using generative AI tooling?

no

Closes apache#44609 from yaooqinn/SPARK-46592-F.

Authored-by: Kent Yao <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants