Skip to content

[SPARK-42306][SQL] Integrate _LEGACY_ERROR_TEMP_1317 into UNRESOLVED_COLUMN.WITH_SUGGESTION#39877

Closed
itholic wants to merge 7 commits intoapache:masterfrom
itholic:LEGACY_1317
Closed

[SPARK-42306][SQL] Integrate _LEGACY_ERROR_TEMP_1317 into UNRESOLVED_COLUMN.WITH_SUGGESTION#39877
itholic wants to merge 7 commits intoapache:masterfrom
itholic:LEGACY_1317

Conversation

@itholic
Copy link
Contributor

@itholic itholic commented Feb 3, 2023

What changes were proposed in this pull request?

This PR proposes to integrate _LEGACY_ERROR_TEMP_1317 into UNRESOLVED_COLUMN.WITH_SUGGESTION.

_LEGACY_ERROR_TEMP_1317

  "_LEGACY_ERROR_TEMP_1317" : {
    "message" : [
      "Cannot resolve column name \"<colName>\" among (<fieldsStr>)<extraMsg>"
    ]
  },

UNRESOLVED_COLUMN.WITH_SUGGESTION

  "UNRESOLVED_COLUMN" : {
    "message" : [
      "A column or function parameter with name <objectName> cannot be resolved."
    ],
    "subClass" : {
      "WITHOUT_SUGGESTION" : {
        "message" : [
          ""
        ]
      },
      "WITH_SUGGESTION" : {
        "message" : [
          "Did you mean one of the following? [<proposal>]."
        ]
      }
    },
    "sqlState" : "42703"
  },

Why are the changes needed?

We should assign proper name to LEGACY_ERROR_TEMP*

Does this PR introduce any user-facing change?

No

How was this patch tested?

./build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite*"

@itholic
Copy link
Contributor Author

itholic commented Feb 3, 2023

I think we can reuse UNRESOLVED_COLUMN.WITH_SUGGESTION for _LEGACY_ERROR_TEMP_1317.

cc @srielau @MaxGekk @cloud-fan

@MaxGekk
Copy link
Member

MaxGekk commented Feb 6, 2023

Waiting for CI.

@MaxGekk
Copy link
Member

MaxGekk commented Feb 7, 2023

+1, LGTM. Merging to master/3.4.
Thank you, @itholic and @srielau for review.

@MaxGekk MaxGekk closed this in 6b6bb6f Feb 7, 2023
MaxGekk pushed a commit that referenced this pull request Feb 7, 2023
…ED_COLUMN.WITH_SUGGESTION`

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

This PR proposes to integrate `_LEGACY_ERROR_TEMP_1317` into `UNRESOLVED_COLUMN.WITH_SUGGESTION`.

**_LEGACY_ERROR_TEMP_1317**
```json
  "_LEGACY_ERROR_TEMP_1317" : {
    "message" : [
      "Cannot resolve column name \"<colName>\" among (<fieldsStr>)<extraMsg>"
    ]
  },
```

**UNRESOLVED_COLUMN.WITH_SUGGESTION**
```json
  "UNRESOLVED_COLUMN" : {
    "message" : [
      "A column or function parameter with name <objectName> cannot be resolved."
    ],
    "subClass" : {
      "WITHOUT_SUGGESTION" : {
        "message" : [
          ""
        ]
      },
      "WITH_SUGGESTION" : {
        "message" : [
          "Did you mean one of the following? [<proposal>]."
        ]
      }
    },
    "sqlState" : "42703"
  },
```

### Why are the changes needed?

We should assign proper name to _LEGACY_ERROR_TEMP_*

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

No

### How was this patch tested?

`./build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite*"`

Closes #39877 from itholic/LEGACY_1317.

Authored-by: itholic <haejoon.lee@databricks.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
(cherry picked from commit 6b6bb6f)
Signed-off-by: Max Gekk <max.gekk@gmail.com>
@itholic itholic deleted the LEGACY_1317 branch April 22, 2023 05:48
snmvaughan pushed a commit to snmvaughan/spark that referenced this pull request Jun 20, 2023
…ED_COLUMN.WITH_SUGGESTION`

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

This PR proposes to integrate `_LEGACY_ERROR_TEMP_1317` into `UNRESOLVED_COLUMN.WITH_SUGGESTION`.

**_LEGACY_ERROR_TEMP_1317**
```json
  "_LEGACY_ERROR_TEMP_1317" : {
    "message" : [
      "Cannot resolve column name \"<colName>\" among (<fieldsStr>)<extraMsg>"
    ]
  },
```

**UNRESOLVED_COLUMN.WITH_SUGGESTION**
```json
  "UNRESOLVED_COLUMN" : {
    "message" : [
      "A column or function parameter with name <objectName> cannot be resolved."
    ],
    "subClass" : {
      "WITHOUT_SUGGESTION" : {
        "message" : [
          ""
        ]
      },
      "WITH_SUGGESTION" : {
        "message" : [
          "Did you mean one of the following? [<proposal>]."
        ]
      }
    },
    "sqlState" : "42703"
  },
```

### Why are the changes needed?

We should assign proper name to _LEGACY_ERROR_TEMP_*

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

No

### How was this patch tested?

`./build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite*"`

Closes apache#39877 from itholic/LEGACY_1317.

Authored-by: itholic <haejoon.lee@databricks.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
(cherry picked from commit 6b6bb6f)
Signed-off-by: Max Gekk <max.gekk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants