You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "monkeyboy123 (via GitHub)" <gi...@apache.org> on 2023/08/07 09:20:37 UTC

[GitHub] [spark] monkeyboy123 opened a new pull request, #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)

monkeyboy123 opened a new pull request, #42376:
URL: https://github.com/apache/spark/pull/42376

   
   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     1. If this is your first time, please read our contributor guidelines: https://spark.apache.org/contributing.html
     2. Ensure you have added or run the appropriate tests for your PR: https://spark.apache.org/developer-tools.html
     3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][SPARK-XXXX] Your PR title ...'.
     4. Be sure to keep the PR description updated to reflect all changes.
     5. Please write your PR title to summarize what this PR proposes.
     6. If possible, provide a concise example to reproduce the issue for a faster review.
     7. If you want to add a new configuration, please read the guideline first for naming configurations in
        'core/src/main/scala/org/apache/spark/internal/config/ConfigEntry.scala'.
     8. If you want to add or modify an error type or message, please read the guideline first in
        'core/src/main/resources/error/README.md'.
   -->
   
   ### What changes were proposed in this pull request?
   <!--
   Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. 
   If possible, please consider writing useful notes for better and faster reviews in your PR. See the examples below.
     1. If you refactor some codes with changing classes, showing the class hierarchy will help reviewers.
     2. If you fix some SQL features, you can provide some references of other DBMSes.
     3. If there is design documentation, please add the link.
     4. If there is a discussion in the mailing list, please add the link.
   -->
   Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)
    
   
   
   ### Why are the changes needed?
   <!--
   Please clarify why the changes are needed. For instance,
     1. If you propose a new API, clarify the use case for a new API.
     2. If you fix a bug, you can clarify why it is a bug.
   -->
    It causes performance regression.
   
   ### Does this PR introduce _any_ user-facing change?
   <!--
   Note that it means *any* user-facing change including all aspects such as the documentation fix.
   If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
   If possible, please also clarify if this is a user-facing change compared to the released Spark versions or within the unreleased branches such as master.
   If no, write 'No'.
   -->
   yes,
   sql like this:
   ```
   select tmp.* 
    from
    (select
           device_id, ads_id, 
           from_json(regexp_replace(device_personas, '(?<=(\\\\\\{|,))"device_', '"user_device_'), ${device_schema}) as tmp
           from input )
   
   ${device_schema} includes more than 100 fields.
   ```
   before this pr: 
   it takes 43 minutes.
   <img width="597" alt="image" src="https://github.com/apache/spark/assets/9074114/865314de-a048-4c19-9dfe-552fb3cc2ddc">
   
   After this pr:
   it takes 6 minutes.
   <img width="642" alt="image" src="https://github.com/apache/spark/assets/9074114/a374e828-2582-4fbb-8f32-c8e640b8c2e7">
   
   If Rule: OptimizeJsonExprs not been applied, 
   in physical plan : ProjectExec 
   function: InterpretedUnsafeProjection.createProjection or GenerateUnsafeProjection.generate will  eliminate common expression,so that regexp_replace will been computed  just one time.
   
   If Rule: OptimizeJsonExprs been applied,  regexp_replace will been computed as many times as numbers of ${device_schema}  fields . 
   
   BTW, it hard to find root cause, in this examples, it takes me 2 days to find out the root cause. 
   
   
   
   
   
   ### How was this patch tested?
   <!--
   If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
   If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
   If tests were not added, please describe why they were not added and/or why it was difficult to add.
   If benchmark tests were added, please run the benchmarks in GitHub Actions for the consistent environment, and the instructions could accord to: https://spark.apache.org/developer-tools.html#github-workflow-benchmarks.
   -->
   NO, it just a rule optimization for OptimizeJsonExprs


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [spark] monkeyboy123 commented on pull request #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)

Posted by "monkeyboy123 (via GitHub)" <gi...@apache.org>.
monkeyboy123 commented on PR #42376:
URL: https://github.com/apache/spark/pull/42376#issuecomment-1672814487

   It seems like it happens in spark 3.1.1.  It has been fixed in spark 3.4.x.
   @cloud-fan  @wangyum  


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [spark] wangyum closed pull request #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)

Posted by "wangyum (via GitHub)" <gi...@apache.org>.
wangyum closed pull request #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)
URL: https://github.com/apache/spark/pull/42376


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [spark] monkeyboy123 commented on pull request #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)

Posted by "monkeyboy123 (via GitHub)" <gi...@apache.org>.
monkeyboy123 commented on PR #42376:
URL: https://github.com/apache/spark/pull/42376#issuecomment-1669480999

   > cc @wangyum do you have any ideas? It seems any optimization that changes the expression shape may break common subexpression elimination (CSE). It's hard to come up with a good cost model to fix it. I think a better idea is to make CSE a plan-level optimization, so that we can find all common subexpressions before optimizing expressions. But it's hard to do.
   > 
   > @monkeyboy123 is it possible to rewrite your query and use subquery alias or CTE to hold the expression result, to avoid repeated execution? or you can disable this optimization by setting `spark.sql.optimizer.excludedRules` to include this rule.
   
   I can disable this optimization by  setting spark.sql.optimizer.enableJsonExpressionOptimization to false, but i think it is a common case that someone will encounter, maybe can we add more case ,such as RegExpReplace or RegExpExtract etc, to deal with this case?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [spark] monkeyboy123 closed pull request #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)

Posted by "monkeyboy123 (via GitHub)" <gi...@apache.org>.
monkeyboy123 closed pull request #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)
URL: https://github.com/apache/spark/pull/42376


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [spark] monkeyboy123 commented on pull request #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)

Posted by "monkeyboy123 (via GitHub)" <gi...@apache.org>.
monkeyboy123 commented on PR #42376:
URL: https://github.com/apache/spark/pull/42376#issuecomment-1668104156

   retest this please


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [spark] wangyum commented on pull request #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)

Posted by "wangyum (via GitHub)" <gi...@apache.org>.
wangyum commented on PR #42376:
URL: https://github.com/apache/spark/pull/42376#issuecomment-1673275286

   Thanks @monkeyboy123. Please upgrade your Spark to the latest version.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [spark] wankunde commented on pull request #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)

Posted by "wankunde (via GitHub)" <gi...@apache.org>.
wankunde commented on PR #42376:
URL: https://github.com/apache/spark/pull/42376#issuecomment-1674441218

   I think we can reuse the result of the same regexp_replace functions, for example, we can reuse the result of `regexp_replace(s, 'a', 'x')` :
   
   ```sql
   SELECT from_json(regexp_replace(s, 'a', 'x'), 'x INT, b DOUBLE').x,
          from_json(regexp_replace(s, 'a', 'x'), 'x INT, b DOUBLE').b
   FROM values('{"a":1, "b":0.8}') t(s)
   ```
   
   Filed another PR for this purpose: https://github.com/apache/spark/pull/42450
   
   cc @cloud-fan @wangyum 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [spark] monkeyboy123 commented on pull request #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)

Posted by "monkeyboy123 (via GitHub)" <gi...@apache.org>.
monkeyboy123 commented on PR #42376:
URL: https://github.com/apache/spark/pull/42376#issuecomment-1668672646

   gently ping @viirya Could you help me to reivew it? also cc @cloud-fan 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [spark] wangyum commented on pull request #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)

Posted by "wangyum (via GitHub)" <gi...@apache.org>.
wangyum commented on PR #42376:
URL: https://github.com/apache/spark/pull/42376#issuecomment-1671438383

   @monkeyboy123 Have you enabled `spark.sql.optimizer.collapseProjectAlwaysInline`?
   
   ```scala
   Seq("""{"a":1, "b":0.8}""").toDF("s").write.saveAsTable("t")
   val df = sql(
     """
       |SELECT j.*
       |FROM   (SELECT from_json(regexp_replace(s, 'a', 'new_a'), 'new_a INT, b DOUBLE') AS j
       |        FROM   t) tmp
       |""".stripMargin)
   df.explain(true)
   ```
   
   `set spark.sql.optimizer.collapseProjectAlwaysInline=false`:
   ```
   == Optimized Logical Plan ==
   Project [j#17.new_a AS new_a#20, j#17.b AS b#21]
   +- Project [from_json(StructField(new_a,IntegerType,true), StructField(b,DoubleType,true), regexp_replace(s#18, a, new_a, 1), Some(America/Los_Angeles)) AS j#17]
      +- Relation spark_catalog.default.t[s#18] parquet
   
   == Physical Plan ==
   *(2) Project [j#17.new_a AS new_a#20, j#17.b AS b#21]
   +- Project [from_json(StructField(new_a,IntegerType,true), StructField(b,DoubleType,true), regexp_replace(s#18, a, new_a, 1), Some(America/Los_Angeles)) AS j#17]
      +- *(1) ColumnarToRow
         +- FileScan parquet spark_catalog.default.t[s#18] Batched: true, DataFilters: [], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/Users/yumwang/spark/spark-warehouse/org.apache.spark..., PartitionFilters: [], PushedFilters: [], ReadSchema: struct<s:string>
   ```
   `set spark.sql.optimizer.collapseProjectAlwaysInline=true`:
   ```
   == Optimized Logical Plan ==
   Project [from_json(StructField(new_a,IntegerType,true), regexp_replace(s#18, a, new_a, 1), Some(America/Los_Angeles)).new_a AS new_a#20, from_json(StructField(b,DoubleType,true), regexp_replace(s#18, a, new_a, 1), Some(America/Los_Angeles)).b AS b#21]
   +- Relation spark_catalog.default.t[s#18] parquet
   
   == Physical Plan ==
   Project [from_json(StructField(new_a,IntegerType,true), regexp_replace(s#18, a, new_a, 1), Some(America/Los_Angeles)).new_a AS new_a#20, from_json(StructField(b,DoubleType,true), regexp_replace(s#18, a, new_a, 1), Some(America/Los_Angeles)).b AS b#21]
   +- *(1) ColumnarToRow
      +- FileScan parquet spark_catalog.default.t[s#18] Batched: true, DataFilters: [], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/Users/yumwang/spark/spark-warehouse/org.apache.spark..., PartitionFilters: [], PushedFilters: [], ReadSchema: struct<s:string>
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [spark] monkeyboy123 commented on pull request #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)

Posted by "monkeyboy123 (via GitHub)" <gi...@apache.org>.
monkeyboy123 commented on PR #42376:
URL: https://github.com/apache/spark/pull/42376#issuecomment-1671598637

   > 
   
   
   @wangyum Actually, i encounter this problem in spark 3.1.1, but i can do a check in spark 3.4.x.
   
   
   > @monkeyboy123 Have you enabled `spark.sql.optimizer.collapseProjectAlwaysInline`?
   > 
   > ```scala
   > Seq("""{"a":1, "b":0.8}""").toDF("s").write.saveAsTable("t")
   > val df = sql(
   >   """
   >     |SELECT j.*
   >     |FROM   (SELECT from_json(regexp_replace(s, 'a', 'new_a'), 'new_a INT, b DOUBLE') AS j
   >     |        FROM   t) tmp
   >     |""".stripMargin)
   > df.explain(true)
   > ```
   > 
   > `set spark.sql.optimizer.collapseProjectAlwaysInline=false`:
   > 
   > ```
   > == Optimized Logical Plan ==
   > Project [j#17.new_a AS new_a#20, j#17.b AS b#21]
   > +- Project [from_json(StructField(new_a,IntegerType,true), StructField(b,DoubleType,true), regexp_replace(s#18, a, new_a, 1), Some(America/Los_Angeles)) AS j#17]
   >    +- Relation spark_catalog.default.t[s#18] parquet
   > 
   > == Physical Plan ==
   > *(2) Project [j#17.new_a AS new_a#20, j#17.b AS b#21]
   > +- Project [from_json(StructField(new_a,IntegerType,true), StructField(b,DoubleType,true), regexp_replace(s#18, a, new_a, 1), Some(America/Los_Angeles)) AS j#17]
   >    +- *(1) ColumnarToRow
   >       +- FileScan parquet spark_catalog.default.t[s#18] Batched: true, DataFilters: [], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/Users/yumwang/spark/spark-warehouse/org.apache.spark..., PartitionFilters: [], PushedFilters: [], ReadSchema: struct<s:string>
   > ```
   > 
   > `set spark.sql.optimizer.collapseProjectAlwaysInline=true`:
   > 
   > ```
   > == Optimized Logical Plan ==
   > Project [from_json(StructField(new_a,IntegerType,true), regexp_replace(s#18, a, new_a, 1), Some(America/Los_Angeles)).new_a AS new_a#20, from_json(StructField(b,DoubleType,true), regexp_replace(s#18, a, new_a, 1), Some(America/Los_Angeles)).b AS b#21]
   > +- Relation spark_catalog.default.t[s#18] parquet
   > 
   > == Physical Plan ==
   > Project [from_json(StructField(new_a,IntegerType,true), regexp_replace(s#18, a, new_a, 1), Some(America/Los_Angeles)).new_a AS new_a#20, from_json(StructField(b,DoubleType,true), regexp_replace(s#18, a, new_a, 1), Some(America/Los_Angeles)).b AS b#21]
   > +- *(1) ColumnarToRow
   >    +- FileScan parquet spark_catalog.default.t[s#18] Batched: true, DataFilters: [], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/Users/yumwang/spark/spark-warehouse/org.apache.spark..., PartitionFilters: [], PushedFilters: [], ReadSchema: struct<s:string>
   > ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [spark] cloud-fan commented on pull request #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)

Posted by "cloud-fan (via GitHub)" <gi...@apache.org>.
cloud-fan commented on PR #42376:
URL: https://github.com/apache/spark/pull/42376#issuecomment-1669240688

   cc @wangyum do you have any ideas? It seems any optimization that changes the expression shape may break common subexpression elimination (CSE). It's hard to come up with a good cost model to fix it. I think a better idea is to make CSE a plan-level optimization, so that we can find all common subexpressions before optimizing expressions. But it's hard to do.
   
   @monkeyboy123 is it possible to rewrite your query and use subquery alias or CTE to hold the expression result, to avoid repeated execution? or you can disable this optimization by setting `spark.sql.optimizer.excludedRules` to include this rule.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [spark] monkeyboy123 commented on pull request #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)

Posted by "monkeyboy123 (via GitHub)" <gi...@apache.org>.
monkeyboy123 commented on PR #42376:
URL: https://github.com/apache/spark/pull/42376#issuecomment-1671602098

   > @monkeyboy123 Have you enabled `spark.sql.optimizer.collapseProjectAlwaysInline`?
   
   @wangyum Actually, i encounter this problem in spark 3.1.1, but i can do a check in spark 3.4.x.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [spark] monkeyboy123 commented on pull request #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)

Posted by "monkeyboy123 (via GitHub)" <gi...@apache.org>.
monkeyboy123 commented on PR #42376:
URL: https://github.com/apache/spark/pull/42376#issuecomment-1671600387

   > @monkeyboy123 Have you enabled `spark.sql.optimizer.collapseProjectAlwaysInline`?
   @wangyum Actually, i encounter this problem in spark 3.1.1, but i can do a check in spark 3.4.x.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [spark] monkeyboy123 commented on pull request #42376: [SPARK-44700][SQL] Rule OptimizeCsvJsonExprs should not be applied to expression like from_json(regexp_replace)

Posted by "monkeyboy123 (via GitHub)" <gi...@apache.org>.
monkeyboy123 commented on PR #42376:
URL: https://github.com/apache/spark/pull/42376#issuecomment-1671596282

   > Project [from_json(StructField(new_a,IntegerType,true), regexp_replace(s#18, a, new_a, 1), Some(America/Los_Angeles)).new_a AS new_a#20, from_json(StructField(b,DoubleType,true), regexp_replace(s#18, a, new_a, 1), Some(America/Los_Angeles)).b AS b#21]
   @wangyum  Actually, i encounter this problem in spark 3.1.1, but i can do a check in spark 3.4.x.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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