Skip to content

Generic stored procedure parsing #3769

Generic stored procedure parsing

Generic stored procedure parsing #3769

GitHub Actions / Coverage Tests Results succeeded Nov 6, 2024 in 0s

13 fail, 34 skipped, 400 pass in 4s

447 tests  ±0   400 ✅ ±0   4s ⏱️ ±0s
  6 suites ±0    34 💤 ±0 
  6 files   ±0    13 ❌ ±0 

Results for commit 7aa28ea. ± Comparison against earlier commit 4af7258.

Annotations

Check warning on line 0 in com.databricks.labs.remorph.coverage.TSqlAcceptanceSuite

See this annotation in the file changed.

@github-actions github-actions / Coverage Tests Results

core_engine/test_invalid_syntax/syntax_error_1.sql (com.databricks.labs.remorph.coverage.TSqlAcceptanceSuite) failed

core/target/surefire-reports/TEST-com.databricks.labs.remorph.coverage.TSqlAcceptanceSuite.xml [took 0s]
Raw output

=== Unexpected output (expected vs actual) ===
 SELECT                                                                                                                                                 SELECT
   col1,                                                                                                                                                  col1,
   /* The following issues were detected:                                                                                                                 /* The following issues were detected:
                                                                                                                                                          
      Unparsed input - ErrorNode encountered                                                                                                                 Unparsed input - ErrorNode encountered
       Unparsable text: unexpected extra input ',' while parsing a SELECT statement                                                                           Unparsable text: unexpected extra input ',' while parsing a SELECT statement
!      expecting one of: $Currency, 'String', @@Reference, @Local, Float, Identifier, Integer, Operator, Real, '$ACTION', '$NODE_ID', '$PARTITION'...         expecting one of: $Currency, 'String', @@Reference, @Local, Float, Identifier, Integer, Operator, Real, Statement, '$ACTION', '$NODE_ID'...
       Unparsable text: ,                                                                                                                                     Unparsable text: ,
    */                                                                                                                                                     */
   col2                                                                                                                                                   col2
 FROM                                                                                                                                                   FROM
   table_name;                                                                                                                                            table_name;


      org.scalatest.exceptions.TestFailedException: 
=== Unexpected output (expected vs actual) ===
 SELECT                                                                                                                                                 SELECT
   col1,                                                                                                                                                  col1,
   /* The following issues were detected:                                                                                                                 /* The following issues were detected:
                                                                                                                                                          
      Unparsed input - ErrorNode encountered                                                                                                                 Unparsed input - ErrorNode encountered
       Unparsable text: unexpected extra input ',' while parsing a SELECT statement                                                                           Unparsable text: unexpected extra input ',' while parsing a SELECT statement
!      expecting one of: $Currency, 'String', @@Reference, @Local, Float, Identifier, Integer, Operator, Real, '$ACTION', '$NODE_ID', '$PARTITION'...         expecting one of: $Currency, 'String', @@Reference, @Local, Float, Identifier, Integer, Operator, Real, Statement, '$ACTION', '$NODE_ID'...
       Unparsable text: ,                                                                                                                                     Unparsable text: ,
    */                                                                                                                                                     */
   col2                                                                                                                                                   col2
 FROM                                                                                                                                                   FROM
   table_name;                                                                                                                                            table_name;

      at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
      at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
      at org.scalatest.flatspec.AnyFlatSpec.newAssertionFailedException(AnyFlatSpec.scala:1685)
      at org.scalatest.Assertions.fail(Assertions.scala:933)
      at org.scalatest.Assertions.fail$(Assertions.scala:929)
      at org.scalatest.flatspec.AnyFlatSpec.fail(AnyFlatSpec.scala:1685)
      at com.databricks.labs.remorph.coverage.AcceptanceSpec.$anonfun$new$2(AcceptanceSpec.scala:15)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1684)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1682)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1694)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1694)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1676)
      at org.scalatest.flatspec.AnyFlatSpec.runTest(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1752)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1752)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1751)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.run(Suite.scala:1112)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1797)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1797)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1795)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1175)
      at org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1222)
      at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
      at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
      at org.scalatest.Suite.runNestedSuites(Suite.scala:1220)
      at org.scalatest.Suite.runNestedSuites$(Suite.scala:1154)
      at org.scalatest.tools.DiscoverySuite.runNestedSuites(DiscoverySuite.scala:30)
      at org.scalatest.Suite.run(Suite.scala:1109)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.tools.DiscoverySuite.run(DiscoverySuite.scala:30)
      at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13(Runner.scala:1320)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13$adapted(Runner.scala:1314)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1314)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24(Runner.scala:993)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24$adapted(Runner.scala:971)
      at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1480)
      at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:971)
      at org.scalatest.tools.Runner$.main(Runner.scala:775)
      at org.scalatest.tools.Runner.main(Runner.scala)

Check warning on line 0 in com.databricks.labs.remorph.coverage.TSqlAcceptanceSuite

See this annotation in the file changed.

@github-actions github-actions / Coverage Tests Results

core_engine/test_invalid_syntax/syntax_error_2.sql (com.databricks.labs.remorph.coverage.TSqlAcceptanceSuite) failed

core/target/surefire-reports/TEST-com.databricks.labs.remorph.coverage.TSqlAcceptanceSuite.xml [took 0s]
Raw output

=== Unexpected output (expected vs actual) ===
 /* The following issues were detected:                                                                                                                     /* The following issues were detected:
                                                                                                                                                            
    Unparsed input - ErrorNode encountered                                                                                                                     Unparsed input - ErrorNode encountered
     Unparsable text: unexpected extra input '*' while parsing a T-SQL batch                                                                                    Unparsable text: unexpected extra input '*' while parsing a T-SQL batch
!    expecting one of: End of batch, Identifier, Select Statement, Statement, '$NODE_ID', '(', ';', 'BULK', 'EXTERNAL', 'IDENTITY', 'RAW', 'REPLICATE'...       expecting one of: End of batch, Identifier, Select Statement, Statement, '$NODE_ID', '(', ';', 'ACCOUNTADMIN', 'ALERT', 'ARRAY', 'BODY', 'BULK'...
     Unparsable text: *                                                                                                                                         Unparsable text: *
  */                                                                                                                                                         */


      org.scalatest.exceptions.TestFailedException: 
=== Unexpected output (expected vs actual) ===
 /* The following issues were detected:                                                                                                                     /* The following issues were detected:
                                                                                                                                                            
    Unparsed input - ErrorNode encountered                                                                                                                     Unparsed input - ErrorNode encountered
     Unparsable text: unexpected extra input '*' while parsing a T-SQL batch                                                                                    Unparsable text: unexpected extra input '*' while parsing a T-SQL batch
!    expecting one of: End of batch, Identifier, Select Statement, Statement, '$NODE_ID', '(', ';', 'BULK', 'EXTERNAL', 'IDENTITY', 'RAW', 'REPLICATE'...       expecting one of: End of batch, Identifier, Select Statement, Statement, '$NODE_ID', '(', ';', 'ACCOUNTADMIN', 'ALERT', 'ARRAY', 'BODY', 'BULK'...
     Unparsable text: *                                                                                                                                         Unparsable text: *
  */                                                                                                                                                         */

      at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
      at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
      at org.scalatest.flatspec.AnyFlatSpec.newAssertionFailedException(AnyFlatSpec.scala:1685)
      at org.scalatest.Assertions.fail(Assertions.scala:933)
      at org.scalatest.Assertions.fail$(Assertions.scala:929)
      at org.scalatest.flatspec.AnyFlatSpec.fail(AnyFlatSpec.scala:1685)
      at com.databricks.labs.remorph.coverage.AcceptanceSpec.$anonfun$new$2(AcceptanceSpec.scala:15)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1684)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1682)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1694)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1694)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1676)
      at org.scalatest.flatspec.AnyFlatSpec.runTest(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1752)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1752)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1751)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.run(Suite.scala:1112)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1797)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1797)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1795)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1175)
      at org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1222)
      at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
      at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
      at org.scalatest.Suite.runNestedSuites(Suite.scala:1220)
      at org.scalatest.Suite.runNestedSuites$(Suite.scala:1154)
      at org.scalatest.tools.DiscoverySuite.runNestedSuites(DiscoverySuite.scala:30)
      at org.scalatest.Suite.run(Suite.scala:1109)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.tools.DiscoverySuite.run(DiscoverySuite.scala:30)
      at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13(Runner.scala:1320)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13$adapted(Runner.scala:1314)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1314)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24(Runner.scala:993)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24$adapted(Runner.scala:971)
      at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1480)
      at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:971)
      at org.scalatest.tools.Runner$.main(Runner.scala:775)
      at org.scalatest.tools.Runner.main(Runner.scala)

Check warning on line 0 in com.databricks.labs.remorph.coverage.TSqlAcceptanceSuite

See this annotation in the file changed.

@github-actions github-actions / Coverage Tests Results

core_engine/test_invalid_syntax/syntax_error_3.sql (com.databricks.labs.remorph.coverage.TSqlAcceptanceSuite) failed

core/target/surefire-reports/TEST-com.databricks.labs.remorph.coverage.TSqlAcceptanceSuite.xml [took 0s]
Raw output

=== Unexpected output (expected vs actual) ===
 /* The following issues were detected:                                                                                                                     /* The following issues were detected:
                                                                                                                                                            
    Unparsed input - ErrorNode encountered                                                                                                                     Unparsed input - ErrorNode encountered
     Unparsable text: unexpected extra input '*' while parsing a T-SQL batch                                                                                    Unparsable text: unexpected extra input '*' while parsing a T-SQL batch
!    expecting one of: End of batch, Identifier, Select Statement, Statement, '$NODE_ID', '(', ';', 'BULK', 'EXTERNAL', 'IDENTITY', 'RAW', 'REPLICATE'...       expecting one of: End of batch, Identifier, Select Statement, Statement, '$NODE_ID', '(', ';', 'ACCOUNTADMIN', 'ALERT', 'ARRAY', 'BODY', 'BULK'...
     Unparsable text: *                                                                                                                                         Unparsable text: *
  */                                                                                                                                                         */
 SELECT                                                                                                                                                     SELECT
   1;                                                                                                                                                         1;
 SELECT                                                                                                                                                     SELECT
   A AS B                                                                                                                                                     A AS B
 FROM                                                                                                                                                       FROM
   C;                                                                                                                                                         C;


      org.scalatest.exceptions.TestFailedException: 
=== Unexpected output (expected vs actual) ===
 /* The following issues were detected:                                                                                                                     /* The following issues were detected:
                                                                                                                                                            
    Unparsed input - ErrorNode encountered                                                                                                                     Unparsed input - ErrorNode encountered
     Unparsable text: unexpected extra input '*' while parsing a T-SQL batch                                                                                    Unparsable text: unexpected extra input '*' while parsing a T-SQL batch
!    expecting one of: End of batch, Identifier, Select Statement, Statement, '$NODE_ID', '(', ';', 'BULK', 'EXTERNAL', 'IDENTITY', 'RAW', 'REPLICATE'...       expecting one of: End of batch, Identifier, Select Statement, Statement, '$NODE_ID', '(', ';', 'ACCOUNTADMIN', 'ALERT', 'ARRAY', 'BODY', 'BULK'...
     Unparsable text: *                                                                                                                                         Unparsable text: *
  */                                                                                                                                                         */
 SELECT                                                                                                                                                     SELECT
   1;                                                                                                                                                         1;
 SELECT                                                                                                                                                     SELECT
   A AS B                                                                                                                                                     A AS B
 FROM                                                                                                                                                       FROM
   C;                                                                                                                                                         C;

      at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
      at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
      at org.scalatest.flatspec.AnyFlatSpec.newAssertionFailedException(AnyFlatSpec.scala:1685)
      at org.scalatest.Assertions.fail(Assertions.scala:933)
      at org.scalatest.Assertions.fail$(Assertions.scala:929)
      at org.scalatest.flatspec.AnyFlatSpec.fail(AnyFlatSpec.scala:1685)
      at com.databricks.labs.remorph.coverage.AcceptanceSpec.$anonfun$new$2(AcceptanceSpec.scala:15)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1684)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1682)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1694)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1694)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1676)
      at org.scalatest.flatspec.AnyFlatSpec.runTest(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1752)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1752)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1751)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.run(Suite.scala:1112)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1797)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1797)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1795)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1175)
      at org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1222)
      at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
      at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
      at org.scalatest.Suite.runNestedSuites(Suite.scala:1220)
      at org.scalatest.Suite.runNestedSuites$(Suite.scala:1154)
      at org.scalatest.tools.DiscoverySuite.runNestedSuites(DiscoverySuite.scala:30)
      at org.scalatest.Suite.run(Suite.scala:1109)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.tools.DiscoverySuite.run(DiscoverySuite.scala:30)
      at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13(Runner.scala:1320)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13$adapted(Runner.scala:1314)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1314)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24(Runner.scala:993)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24$adapted(Runner.scala:971)
      at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1480)
      at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:971)
      at org.scalatest.tools.Runner$.main(Runner.scala:775)
      at org.scalatest.tools.Runner.main(Runner.scala)

Check warning on line 0 in com.databricks.labs.remorph.coverage.TSqlAcceptanceSuite

See this annotation in the file changed.

@github-actions github-actions / Coverage Tests Results

functions/test_grouping_id_1.sql (com.databricks.labs.remorph.coverage.TSqlAcceptanceSuite) failed

core/target/surefire-reports/TEST-com.databricks.labs.remorph.coverage.TSqlAcceptanceSuite.xml [took 0s]
Raw output
&#010;=== Unexpected output (expected vs actual) ===&#010;!SELECT                      /* The following issues were detected:&#010;!  GROUPING_ID(col1, col2)   &#010;!FROM                           Unparsed input - ErrorNode encountered&#010;!  t1                            Unparsable text: ')' was unexpected while parsing a T-SQL batch&#010;!GROUP BY                        expecting one of: End of batch, Operator, Select Statement, Statement, '(', '*', ',', '.', '::', ';', 'AT', 'BULK'...&#010;!  CUBE(col1, col2);             Unparsable text: )&#010;!                                Unparsable text: ;&#010;!                                Unparsable text: parser recovered by ignoring: );&#010;!                             */&#010;!                            SELECT&#010;!                              GROUPING_ID(col1, col2)&#010;!                            FROM&#010;!                              t1&#010;!                            GROUP BY&#010;!                              /* The following issues were detected:&#010;!                              &#010;!                                 Unparsed input - ErrorNode encountered&#010;!                                  Unparsable text: missing ')' at ','&#010;!                                  while parsing a GROUP BY clause in a SELECT statement&#010;!                                  Unparsable text: <missing ')'>&#010;!                               */&#010;!                            ,&#010;!                              col2;&#010;

      org.scalatest.exceptions.TestFailedException: 
=== Unexpected output (expected vs actual) ===
!SELECT                      /* The following issues were detected:
!  GROUPING_ID(col1, col2)   
!FROM                           Unparsed input - ErrorNode encountered
!  t1                            Unparsable text: ')' was unexpected while parsing a T-SQL batch
!GROUP BY                        expecting one of: End of batch, Operator, Select Statement, Statement, '(', '*', ',', '.', '::', ';', 'AT', 'BULK'...
!  CUBE(col1, col2);             Unparsable text: )
!                                Unparsable text: ;
!                                Unparsable text: parser recovered by ignoring: );
!                             */
!                            SELECT
!                              GROUPING_ID(col1, col2)
!                            FROM
!                              t1
!                            GROUP BY
!                              /* The following issues were detected:
!                              
!                                 Unparsed input - ErrorNode encountered
!                                  Unparsable text: missing ')' at ','
!                                  while parsing a GROUP BY clause in a SELECT statement
!                                  Unparsable text: <missing ')'>
!                               */
!                            ,
!                              col2;

      at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
      at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
      at org.scalatest.flatspec.AnyFlatSpec.newAssertionFailedException(AnyFlatSpec.scala:1685)
      at org.scalatest.Assertions.fail(Assertions.scala:933)
      at org.scalatest.Assertions.fail$(Assertions.scala:929)
      at org.scalatest.flatspec.AnyFlatSpec.fail(AnyFlatSpec.scala:1685)
      at com.databricks.labs.remorph.coverage.AcceptanceSpec.$anonfun$new$2(AcceptanceSpec.scala:15)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1684)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1682)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1694)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1694)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1676)
      at org.scalatest.flatspec.AnyFlatSpec.runTest(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1752)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1752)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1751)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.run(Suite.scala:1112)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1797)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1797)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1795)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1175)
      at org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1222)
      at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
      at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
      at org.scalatest.Suite.runNestedSuites(Suite.scala:1220)
      at org.scalatest.Suite.runNestedSuites$(Suite.scala:1154)
      at org.scalatest.tools.DiscoverySuite.runNestedSuites(DiscoverySuite.scala:30)
      at org.scalatest.Suite.run(Suite.scala:1109)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.tools.DiscoverySuite.run(DiscoverySuite.scala:30)
      at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13(Runner.scala:1320)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13$adapted(Runner.scala:1314)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1314)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24(Runner.scala:993)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24$adapted(Runner.scala:971)
      at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1480)
      at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:971)
      at org.scalatest.tools.Runner$.main(Runner.scala:775)
      at org.scalatest.tools.Runner.main(Runner.scala)

Check warning on line 0 in com.databricks.labs.remorph.coverage.TSqlAcceptanceSuite

See this annotation in the file changed.

@github-actions github-actions / Coverage Tests Results

functions/test_grouping_id_2.sql (com.databricks.labs.remorph.coverage.TSqlAcceptanceSuite) failed

core/target/surefire-reports/TEST-com.databricks.labs.remorph.coverage.TSqlAcceptanceSuite.xml [took 0s]
Raw output
&#010;=== Unexpected output (expected vs actual) ===&#010;!SELECT                                   /* The following issues were detected:&#010;!  GROUPING_ID(col1, col2) AS someAlias   &#010;!FROM                                        Unparsed input - ErrorNode encountered&#010;!  t1                                         Unparsable text: ')' was unexpected while parsing a T-SQL batch&#010;!GROUP BY                                     expecting one of: End of batch, Operator, Select Statement, Statement, '(', '*', ',', '.', '::', ';', 'AT', 'BULK'...&#010;!  CUBE(col1, col2);                          Unparsable text: )&#010;!                                             Unparsable text: ;&#010;!                                             Unparsable text: parser recovered by ignoring: );&#010;!                                          */&#010;!                                         SELECT&#010;!                                           GROUPING_ID(col1, col2) AS someAlias&#010;!                                         FROM&#010;!                                           t1&#010;!                                         GROUP BY&#010;!                                           /* The following issues were detected:&#010;!                                           &#010;!                                              Unparsed input - ErrorNode encountered&#010;!                                               Unparsable text: missing ')' at ','&#010;!                                               while parsing a GROUP BY clause in a SELECT statement&#010;!                                               Unparsable text: <missing ')'>&#010;!                                            */&#010;!                                         ,&#010;!                                           col2;&#010;

      org.scalatest.exceptions.TestFailedException: 
=== Unexpected output (expected vs actual) ===
!SELECT                                   /* The following issues were detected:
!  GROUPING_ID(col1, col2) AS someAlias   
!FROM                                        Unparsed input - ErrorNode encountered
!  t1                                         Unparsable text: ')' was unexpected while parsing a T-SQL batch
!GROUP BY                                     expecting one of: End of batch, Operator, Select Statement, Statement, '(', '*', ',', '.', '::', ';', 'AT', 'BULK'...
!  CUBE(col1, col2);                          Unparsable text: )
!                                             Unparsable text: ;
!                                             Unparsable text: parser recovered by ignoring: );
!                                          */
!                                         SELECT
!                                           GROUPING_ID(col1, col2) AS someAlias
!                                         FROM
!                                           t1
!                                         GROUP BY
!                                           /* The following issues were detected:
!                                           
!                                              Unparsed input - ErrorNode encountered
!                                               Unparsable text: missing ')' at ','
!                                               while parsing a GROUP BY clause in a SELECT statement
!                                               Unparsable text: <missing ')'>
!                                            */
!                                         ,
!                                           col2;

      at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
      at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
      at org.scalatest.flatspec.AnyFlatSpec.newAssertionFailedException(AnyFlatSpec.scala:1685)
      at org.scalatest.Assertions.fail(Assertions.scala:933)
      at org.scalatest.Assertions.fail$(Assertions.scala:929)
      at org.scalatest.flatspec.AnyFlatSpec.fail(AnyFlatSpec.scala:1685)
      at com.databricks.labs.remorph.coverage.AcceptanceSpec.$anonfun$new$2(AcceptanceSpec.scala:15)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1684)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1682)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1694)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1694)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1676)
      at org.scalatest.flatspec.AnyFlatSpec.runTest(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1752)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1752)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1751)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.run(Suite.scala:1112)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1797)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1797)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1795)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1175)
      at org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1222)
      at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
      at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
      at org.scalatest.Suite.runNestedSuites(Suite.scala:1220)
      at org.scalatest.Suite.runNestedSuites$(Suite.scala:1154)
      at org.scalatest.tools.DiscoverySuite.runNestedSuites(DiscoverySuite.scala:30)
      at org.scalatest.Suite.run(Suite.scala:1109)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.tools.DiscoverySuite.run(DiscoverySuite.scala:30)
      at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13(Runner.scala:1320)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13$adapted(Runner.scala:1314)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1314)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24(Runner.scala:993)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24$adapted(Runner.scala:971)
      at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1480)
      at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:971)
      at org.scalatest.tools.Runner$.main(Runner.scala:775)
      at org.scalatest.tools.Runner.main(Runner.scala)

Check warning on line 0 in com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite

See this annotation in the file changed.

@github-actions github-actions / Coverage Tests Results

functions/conversion/test_to_number/test_to_number_4.sql (com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite) failed

core/target/surefire-reports/TEST-com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite.xml [took 0s]
Raw output
&#010;=== Unexpected output (expected vs actual) ===&#010;!SELECT                                 /* The following issues were detected:&#010;!  TO_NUMBER(col1, '$999.099'),         &#010;!  TO_NUMBER(tbl.col2, '$999,099.99')      Unparsed input - ErrorNode encountered&#010;!FROM                                       Unparsable text: ',' was unexpected while parsing a Snowflake batch&#010;!  dummy AS tbl;                            expecting one of: End of batch, Select Statement, Statement, '(', ';', 'CALL', 'COMMENT', 'DECLARE', 'EXCEPT', 'GET', 'INTERSECT', 'LET'...&#010;!                                           Unparsable text: ,&#010;!                                           Unparsable text: TO_NUMERIC&#010;!                                           Unparsable text: (&#010;!                                           Unparsable text: tbl&#010;!                                           Unparsable text: .&#010;!                                           Unparsable text: col2&#010;!                                           Unparsable text: ,&#010;!                                           Unparsable text: '&#010;!                                           Unparsable text: $999,099.99&#010;!                                           Unparsable text: '&#010;!                                           Unparsable text: )&#010;!                                           Unparsable text: FROM&#010;!                                           Unparsable text: dummy&#010;!                                           Unparsable text: tbl&#010;!                                           Unparsable text: ;&#010;!                                           Unparsable text: parser recovered by ignoring: ,&#010;!                                                           TO_NUMERIC(tbl.col2, '$999,099.99') FROM dummy tbl;&#010;!                                        */&#010;!                                       /* The following issues were detected:&#010;                                        &#010;!                                          Unparsed input - ErrorNode encountered&#010;!                                           Unparsable text: SELECT TO_DECIMAL(col1, '$999.099'),&#010;!                                                           TO_NUMERIC(tbl.col2, '$999,099.99') FROM dummy&#010;!                                        */&#010;!                                       /* The following issues were detected:&#010;                                        &#010;!                                          Unparsed input - ErrorNode encountered&#010;!                                           Unparsable text: SELECT&#010;!                                           Unparsable text: TO_DECIMAL&#010;!                                           Unparsable text: parser recovered by ignoring: SELECT TO_DECIMAL(&#010;!                                        */&#010;!                                       SELECT&#010;!                                       ;&#010;

      org.scalatest.exceptions.TestFailedException: 
=== Unexpected output (expected vs actual) ===
!SELECT                                 /* The following issues were detected:
!  TO_NUMBER(col1, '$999.099'),         
!  TO_NUMBER(tbl.col2, '$999,099.99')      Unparsed input - ErrorNode encountered
!FROM                                       Unparsable text: ',' was unexpected while parsing a Snowflake batch
!  dummy AS tbl;                            expecting one of: End of batch, Select Statement, Statement, '(', ';', 'CALL', 'COMMENT', 'DECLARE', 'EXCEPT', 'GET', 'INTERSECT', 'LET'...
!                                           Unparsable text: ,
!                                           Unparsable text: TO_NUMERIC
!                                           Unparsable text: (
!                                           Unparsable text: tbl
!                                           Unparsable text: .
!                                           Unparsable text: col2
!                                           Unparsable text: ,
!                                           Unparsable text: '
!                                           Unparsable text: $999,099.99
!                                           Unparsable text: '
!                                           Unparsable text: )
!                                           Unparsable text: FROM
!                                           Unparsable text: dummy
!                                           Unparsable text: tbl
!                                           Unparsable text: ;
!                                           Unparsable text: parser recovered by ignoring: ,
!                                                           TO_NUMERIC(tbl.col2, '$999,099.99') FROM dummy tbl;
!                                        */
!                                       /* The following issues were detected:
                                        
!                                          Unparsed input - ErrorNode encountered
!                                           Unparsable text: SELECT TO_DECIMAL(col1, '$999.099'),
!                                                           TO_NUMERIC(tbl.col2, '$999,099.99') FROM dummy
!                                        */
!                                       /* The following issues were detected:
                                        
!                                          Unparsed input - ErrorNode encountered
!                                           Unparsable text: SELECT
!                                           Unparsable text: TO_DECIMAL
!                                           Unparsable text: parser recovered by ignoring: SELECT TO_DECIMAL(
!                                        */
!                                       SELECT
!                                       ;

      at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
      at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
      at org.scalatest.flatspec.AnyFlatSpec.newAssertionFailedException(AnyFlatSpec.scala:1685)
      at org.scalatest.Assertions.fail(Assertions.scala:933)
      at org.scalatest.Assertions.fail$(Assertions.scala:929)
      at org.scalatest.flatspec.AnyFlatSpec.fail(AnyFlatSpec.scala:1685)
      at com.databricks.labs.remorph.coverage.AcceptanceSpec.$anonfun$new$2(AcceptanceSpec.scala:15)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1684)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1682)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1694)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1694)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1676)
      at org.scalatest.flatspec.AnyFlatSpec.runTest(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1752)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1752)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1751)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.run(Suite.scala:1112)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1797)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1797)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1795)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1175)
      at org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1222)
      at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
      at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
      at org.scalatest.Suite.runNestedSuites(Suite.scala:1220)
      at org.scalatest.Suite.runNestedSuites$(Suite.scala:1154)
      at org.scalatest.tools.DiscoverySuite.runNestedSuites(DiscoverySuite.scala:30)
      at org.scalatest.Suite.run(Suite.scala:1109)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.tools.DiscoverySuite.run(DiscoverySuite.scala:30)
      at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13(Runner.scala:1320)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13$adapted(Runner.scala:1314)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1314)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24(Runner.scala:993)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24$adapted(Runner.scala:971)
      at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1480)
      at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:971)
      at org.scalatest.tools.Runner$.main(Runner.scala:775)
      at org.scalatest.tools.Runner.main(Runner.scala)

Check warning on line 0 in com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite

See this annotation in the file changed.

@github-actions github-actions / Coverage Tests Results

functions/conversion/test_try_to_date/test_try_to_date_3.sql (com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite) failed

core/target/surefire-reports/TEST-com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite.xml [took 0s]
Raw output
&#010;=== Unexpected output (expected vs actual) ===&#010;!SELECT                                                  /* The following issues were detected:&#010;!  DATE(TRY_TO_TIMESTAMP('2012.20.12', 'yyyy.dd.MM')),   &#010;!  DATE(TRY_TO_TIMESTAMP(d.col1, 'yyyy-MM-dd'))             Unparsed input - ErrorNode encountered&#010;!FROM                                                        Unparsable text: ',' was unexpected while parsing a Snowflake batch&#010;!  dummy AS d;                                               expecting one of: End of batch, Select Statement, Statement, '(', ';', 'CALL', 'COMMENT', 'DECLARE', 'EXCEPT', 'GET', 'INTERSECT', 'LET'...&#010;!                                                            Unparsable text: ,&#010;!                                                            Unparsable text: TRY_TO_DATE&#010;!                                                            Unparsable text: (&#010;!                                                            Unparsable text: d&#010;!                                                            Unparsable text: .&#010;!                                                            Unparsable text: col1&#010;!                                                            Unparsable text: )&#010;!                                                            Unparsable text: FROM&#010;!                                                            Unparsable text: dummy&#010;!                                                            Unparsable text: d&#010;!                                                            Unparsable text: ;&#010;!                                                            Unparsable text: parser recovered by ignoring: , TRY_TO_DATE(d.col1) FROM dummy d;&#010;!                                                         */&#010;!                                                        /* The following issues were detected:&#010;                                                         &#010;!                                                           Unparsed input - ErrorNode encountered&#010;!                                                            Unparsable text: SELECT TRY_TO_DATE('2012.20.12', 'yyyy.dd.MM'), TRY_TO_DATE(d.col1) FROM dummy&#010;!                                                         */&#010;!                                                        /* The following issues were detected:&#010;                                                         &#010;!                                                           Unparsed input - ErrorNode encountered&#010;!                                                            Unparsable text: SELECT&#010;!                                                            Unparsable text: TRY_TO_DATE&#010;!                                                            Unparsable text: parser recovered by ignoring: SELECT TRY_TO_DATE(&#010;!                                                         */&#010;!                                                        SELECT&#010;!                                                        ;&#010;

      org.scalatest.exceptions.TestFailedException: 
=== Unexpected output (expected vs actual) ===
!SELECT                                                  /* The following issues were detected:
!  DATE(TRY_TO_TIMESTAMP('2012.20.12', 'yyyy.dd.MM')),   
!  DATE(TRY_TO_TIMESTAMP(d.col1, 'yyyy-MM-dd'))             Unparsed input - ErrorNode encountered
!FROM                                                        Unparsable text: ',' was unexpected while parsing a Snowflake batch
!  dummy AS d;                                               expecting one of: End of batch, Select Statement, Statement, '(', ';', 'CALL', 'COMMENT', 'DECLARE', 'EXCEPT', 'GET', 'INTERSECT', 'LET'...
!                                                            Unparsable text: ,
!                                                            Unparsable text: TRY_TO_DATE
!                                                            Unparsable text: (
!                                                            Unparsable text: d
!                                                            Unparsable text: .
!                                                            Unparsable text: col1
!                                                            Unparsable text: )
!                                                            Unparsable text: FROM
!                                                            Unparsable text: dummy
!                                                            Unparsable text: d
!                                                            Unparsable text: ;
!                                                            Unparsable text: parser recovered by ignoring: , TRY_TO_DATE(d.col1) FROM dummy d;
!                                                         */
!                                                        /* The following issues were detected:
                                                         
!                                                           Unparsed input - ErrorNode encountered
!                                                            Unparsable text: SELECT TRY_TO_DATE('2012.20.12', 'yyyy.dd.MM'), TRY_TO_DATE(d.col1) FROM dummy
!                                                         */
!                                                        /* The following issues were detected:
                                                         
!                                                           Unparsed input - ErrorNode encountered
!                                                            Unparsable text: SELECT
!                                                            Unparsable text: TRY_TO_DATE
!                                                            Unparsable text: parser recovered by ignoring: SELECT TRY_TO_DATE(
!                                                         */
!                                                        SELECT
!                                                        ;

      at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
      at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
      at org.scalatest.flatspec.AnyFlatSpec.newAssertionFailedException(AnyFlatSpec.scala:1685)
      at org.scalatest.Assertions.fail(Assertions.scala:933)
      at org.scalatest.Assertions.fail$(Assertions.scala:929)
      at org.scalatest.flatspec.AnyFlatSpec.fail(AnyFlatSpec.scala:1685)
      at com.databricks.labs.remorph.coverage.AcceptanceSpec.$anonfun$new$2(AcceptanceSpec.scala:15)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1684)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1682)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1694)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1694)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1676)
      at org.scalatest.flatspec.AnyFlatSpec.runTest(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1752)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1752)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1751)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.run(Suite.scala:1112)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1797)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1797)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1795)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1175)
      at org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1222)
      at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
      at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
      at org.scalatest.Suite.runNestedSuites(Suite.scala:1220)
      at org.scalatest.Suite.runNestedSuites$(Suite.scala:1154)
      at org.scalatest.tools.DiscoverySuite.runNestedSuites(DiscoverySuite.scala:30)
      at org.scalatest.Suite.run(Suite.scala:1109)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.tools.DiscoverySuite.run(DiscoverySuite.scala:30)
      at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13(Runner.scala:1320)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13$adapted(Runner.scala:1314)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1314)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24(Runner.scala:993)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24$adapted(Runner.scala:971)
      at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1480)
      at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:971)
      at org.scalatest.tools.Runner$.main(Runner.scala:775)
      at org.scalatest.tools.Runner.main(Runner.scala)

Check warning on line 0 in com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite

See this annotation in the file changed.

@github-actions github-actions / Coverage Tests Results

functions/conversion/test_try_to_number/test_try_to_number_4.sql (com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite) failed

core/target/surefire-reports/TEST-com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite.xml [took 0s]
Raw output
&#010;=== Unexpected output (expected vs actual) ===&#010;!SELECT                                                             /* The following issues were detected:&#010;!  CAST(TRY_TO_NUMBER(col1, '$999.099') AS DECIMAL(38, 0)),         &#010;!  CAST(TRY_TO_NUMBER(tbl.col2, '$999,099.99') AS DECIMAL(38, 0))      Unparsed input - ErrorNode encountered&#010;!FROM                                                                   Unparsable text: ',' was unexpected while parsing a Snowflake batch&#010;!  dummy AS tbl;                                                        expecting one of: End of batch, Select Statement, Statement, '(', ';', 'CALL', 'COMMENT', 'DECLARE', 'EXCEPT', 'GET', 'INTERSECT', 'LET'...&#010;!                                                                       Unparsable text: ,&#010;!                                                                       Unparsable text: TRY_TO_NUMERIC&#010;!                                                                       Unparsable text: (&#010;!                                                                       Unparsable text: tbl&#010;!                                                                       Unparsable text: .&#010;!                                                                       Unparsable text: col2&#010;!                                                                       Unparsable text: ,&#010;!                                                                       Unparsable text: '&#010;!                                                                       Unparsable text: $999,099.99&#010;!                                                                       Unparsable text: '&#010;!                                                                       Unparsable text: )&#010;!                                                                       Unparsable text: FROM&#010;!                                                                       Unparsable text: dummy&#010;!                                                                       Unparsable text: tbl&#010;!                                                                       Unparsable text: ;&#010;!                                                                       Unparsable text: parser recovered by ignoring: ,&#010;!                                                                                       TRY_TO_NUMERIC(tbl.col2, '$999,099.99') FROM dummy tbl;&#010;!                                                                    */&#010;!                                                                   /* The following issues were detected:&#010;                                                                    &#010;!                                                                      Unparsed input - ErrorNode encountered&#010;!                                                                       Unparsable text: SELECT TRY_TO_DECIMAL(col1, '$999.099'),&#010;!                                                                                       TRY_TO_NUMERIC(tbl.col2, '$999,099.99') FROM dummy&#010;!                                                                    */&#010;!                                                                   /* The following issues were detected:&#010;                                                                    &#010;!                                                                      Unparsed input - ErrorNode encountered&#010;!                                                                       Unparsable text: SELECT&#010;!                                                                       Unparsable text: TRY_TO_DECIMAL&#010;!                                                                       Unparsable text: parser recovered by ignoring: SELECT TRY_TO_DECIMAL(&#010;!                                                                    */&#010;!                                                                   SELECT&#010;!                                                                   ;&#010;

      org.scalatest.exceptions.TestFailedException: 
=== Unexpected output (expected vs actual) ===
!SELECT                                                             /* The following issues were detected:
!  CAST(TRY_TO_NUMBER(col1, '$999.099') AS DECIMAL(38, 0)),         
!  CAST(TRY_TO_NUMBER(tbl.col2, '$999,099.99') AS DECIMAL(38, 0))      Unparsed input - ErrorNode encountered
!FROM                                                                   Unparsable text: ',' was unexpected while parsing a Snowflake batch
!  dummy AS tbl;                                                        expecting one of: End of batch, Select Statement, Statement, '(', ';', 'CALL', 'COMMENT', 'DECLARE', 'EXCEPT', 'GET', 'INTERSECT', 'LET'...
!                                                                       Unparsable text: ,
!                                                                       Unparsable text: TRY_TO_NUMERIC
!                                                                       Unparsable text: (
!                                                                       Unparsable text: tbl
!                                                                       Unparsable text: .
!                                                                       Unparsable text: col2
!                                                                       Unparsable text: ,
!                                                                       Unparsable text: '
!                                                                       Unparsable text: $999,099.99
!                                                                       Unparsable text: '
!                                                                       Unparsable text: )
!                                                                       Unparsable text: FROM
!                                                                       Unparsable text: dummy
!                                                                       Unparsable text: tbl
!                                                                       Unparsable text: ;
!                                                                       Unparsable text: parser recovered by ignoring: ,
!                                                                                       TRY_TO_NUMERIC(tbl.col2, '$999,099.99') FROM dummy tbl;
!                                                                    */
!                                                                   /* The following issues were detected:
                                                                    
!                                                                      Unparsed input - ErrorNode encountered
!                                                                       Unparsable text: SELECT TRY_TO_DECIMAL(col1, '$999.099'),
!                                                                                       TRY_TO_NUMERIC(tbl.col2, '$999,099.99') FROM dummy
!                                                                    */
!                                                                   /* The following issues were detected:
                                                                    
!                                                                      Unparsed input - ErrorNode encountered
!                                                                       Unparsable text: SELECT
!                                                                       Unparsable text: TRY_TO_DECIMAL
!                                                                       Unparsable text: parser recovered by ignoring: SELECT TRY_TO_DECIMAL(
!                                                                    */
!                                                                   SELECT
!                                                                   ;

      at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
      at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
      at org.scalatest.flatspec.AnyFlatSpec.newAssertionFailedException(AnyFlatSpec.scala:1685)
      at org.scalatest.Assertions.fail(Assertions.scala:933)
      at org.scalatest.Assertions.fail$(Assertions.scala:929)
      at org.scalatest.flatspec.AnyFlatSpec.fail(AnyFlatSpec.scala:1685)
      at com.databricks.labs.remorph.coverage.AcceptanceSpec.$anonfun$new$2(AcceptanceSpec.scala:15)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1684)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1682)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1694)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1694)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1676)
      at org.scalatest.flatspec.AnyFlatSpec.runTest(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1752)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1752)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1751)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.run(Suite.scala:1112)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1797)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1797)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1795)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1175)
      at org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1222)
      at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
      at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
      at org.scalatest.Suite.runNestedSuites(Suite.scala:1220)
      at org.scalatest.Suite.runNestedSuites$(Suite.scala:1154)
      at org.scalatest.tools.DiscoverySuite.runNestedSuites(DiscoverySuite.scala:30)
      at org.scalatest.Suite.run(Suite.scala:1109)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.tools.DiscoverySuite.run(DiscoverySuite.scala:30)
      at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13(Runner.scala:1320)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13$adapted(Runner.scala:1314)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1314)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24(Runner.scala:993)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24$adapted(Runner.scala:971)
      at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1480)
      at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:971)
      at org.scalatest.tools.Runner$.main(Runner.scala:775)
      at org.scalatest.tools.Runner.main(Runner.scala)

Check warning on line 0 in com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite

See this annotation in the file changed.

@github-actions github-actions / Coverage Tests Results

functions/conversion/to_variant_1.sql (com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite) failed

core/target/surefire-reports/TEST-com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite.xml [took 0s]
Raw output
&#010;=== Unexpected output (expected vs actual) ===&#010;!SELECT                         /* The following issues were detected:&#010;!  TO_JSON(col1) AS json_col1   &#010;!FROM                              Unparsed input - ErrorNode encountered&#010;!  dummy;                           Unparsable text: 'AS' was unexpected while parsing a Snowflake batch&#010;!                                   expecting one of: End of batch, Select Statement, Statement, '(', ';', 'CALL', 'COMMENT', 'DECLARE', 'EXCEPT', 'GET', 'INTERSECT', 'LET'...&#010;!                                   Unparsable text: AS&#010;!                                   Unparsable text: json_col1&#010;!                                   Unparsable text: FROM&#010;!                                   Unparsable text: dummy&#010;!                                   Unparsable text: ;&#010;!                                   Unparsable text: parser recovered by ignoring: AS json_col1 FROM dummy;&#010;!                                */&#010;!                               /* The following issues were detected:&#010;                                &#010;!                                  Unparsed input - ErrorNode encountered&#010;!                                   Unparsable text: SELECT to_variant(col1) AS json_col1 FROM dummy&#010;!                                */&#010;!                               /* The following issues were detected:&#010;                                &#010;!                                  Unparsed input - ErrorNode encountered&#010;!                                   Unparsable text: SELECT&#010;!                                   Unparsable text: to_variant&#010;!                                   Unparsable text: parser recovered by ignoring: SELECT to_variant(&#010;!                                */&#010;!                               SELECT&#010;!                               ;&#010;

      org.scalatest.exceptions.TestFailedException: 
=== Unexpected output (expected vs actual) ===
!SELECT                         /* The following issues were detected:
!  TO_JSON(col1) AS json_col1   
!FROM                              Unparsed input - ErrorNode encountered
!  dummy;                           Unparsable text: 'AS' was unexpected while parsing a Snowflake batch
!                                   expecting one of: End of batch, Select Statement, Statement, '(', ';', 'CALL', 'COMMENT', 'DECLARE', 'EXCEPT', 'GET', 'INTERSECT', 'LET'...
!                                   Unparsable text: AS
!                                   Unparsable text: json_col1
!                                   Unparsable text: FROM
!                                   Unparsable text: dummy
!                                   Unparsable text: ;
!                                   Unparsable text: parser recovered by ignoring: AS json_col1 FROM dummy;
!                                */
!                               /* The following issues were detected:
                                
!                                  Unparsed input - ErrorNode encountered
!                                   Unparsable text: SELECT to_variant(col1) AS json_col1 FROM dummy
!                                */
!                               /* The following issues were detected:
                                
!                                  Unparsed input - ErrorNode encountered
!                                   Unparsable text: SELECT
!                                   Unparsable text: to_variant
!                                   Unparsable text: parser recovered by ignoring: SELECT to_variant(
!                                */
!                               SELECT
!                               ;

      at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
      at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
      at org.scalatest.flatspec.AnyFlatSpec.newAssertionFailedException(AnyFlatSpec.scala:1685)
      at org.scalatest.Assertions.fail(Assertions.scala:933)
      at org.scalatest.Assertions.fail$(Assertions.scala:929)
      at org.scalatest.flatspec.AnyFlatSpec.fail(AnyFlatSpec.scala:1685)
      at com.databricks.labs.remorph.coverage.AcceptanceSpec.$anonfun$new$2(AcceptanceSpec.scala:15)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1684)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1682)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1694)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1694)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1676)
      at org.scalatest.flatspec.AnyFlatSpec.runTest(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1752)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1752)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1751)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.run(Suite.scala:1112)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1797)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1797)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1795)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1175)
      at org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1222)
      at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
      at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
      at org.scalatest.Suite.runNestedSuites(Suite.scala:1220)
      at org.scalatest.Suite.runNestedSuites$(Suite.scala:1154)
      at org.scalatest.tools.DiscoverySuite.runNestedSuites(DiscoverySuite.scala:30)
      at org.scalatest.Suite.run(Suite.scala:1109)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.tools.DiscoverySuite.run(DiscoverySuite.scala:30)
      at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13(Runner.scala:1320)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13$adapted(Runner.scala:1314)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1314)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24(Runner.scala:993)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24$adapted(Runner.scala:971)
      at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1480)
      at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:971)
      at org.scalatest.tools.Runner$.main(Runner.scala:775)
      at org.scalatest.tools.Runner.main(Runner.scala)

Check warning on line 0 in com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite

See this annotation in the file changed.

@github-actions github-actions / Coverage Tests Results

functions/dates/test_convert_timezone_3.sql (com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite) failed

core/target/surefire-reports/TEST-com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite.xml [took 0s]
Raw output
&#010;=== Unexpected output (expected vs actual) ===&#010;!SELECT                                           /* The following issues were detected:&#010;!  a.col1,                                        &#010;!  CONVERT_TIMEZONE('IST', a.ts_col) AS conv_ts      Unparsed input - ErrorNode encountered&#010;!FROM                                                 Unparsable text: 'AS' was unexpected while parsing a Snowflake batch&#010;!  dummy AS a;                                        expecting one of: End of batch, Select Statement, Statement, '(', ';', 'CALL', 'COMMENT', 'DECLARE', 'EXCEPT', 'GET', 'INTERSECT', 'LET'...&#010;!                                                     Unparsable text: AS&#010;!                                                     Unparsable text: conv_ts&#010;!                                                     Unparsable text: FROM&#010;!                                                     Unparsable text: dummy&#010;!                                                     Unparsable text: a&#010;!                                                     Unparsable text: ;&#010;!                                                     Unparsable text: parser recovered by ignoring: AS conv_ts FROM dummy a;&#010;!                                                  */&#010;!                                                 /* The following issues were detected:&#010;                                                  &#010;!                                                    Unparsed input - ErrorNode encountered&#010;!                                                     Unparsable text: SELECT a.col1, CONVERT_TIMEZONE('IST', a.ts_col) AS conv_ts FROM dummy&#010;!                                                  */&#010;!                                                 /* The following issues were detected:&#010;                                                  &#010;!                                                    Unparsed input - ErrorNode encountered&#010;!                                                     Unparsable text: SELECT&#010;!                                                     Unparsable text: a&#010;!                                                     Unparsable text: .&#010;!                                                     Unparsable text: col1&#010;!                                                     Unparsable text: ,&#010;!                                                     Unparsable text: CONVERT_TIMEZONE&#010;!                                                     Unparsable text: parser recovered by ignoring: SELECT a.col1, CONVERT_TIMEZONE(&#010;!                                                  */&#010;!                                                 SELECT&#010;!                                                 ;&#010;

      org.scalatest.exceptions.TestFailedException: 
=== Unexpected output (expected vs actual) ===
!SELECT                                           /* The following issues were detected:
!  a.col1,                                        
!  CONVERT_TIMEZONE('IST', a.ts_col) AS conv_ts      Unparsed input - ErrorNode encountered
!FROM                                                 Unparsable text: 'AS' was unexpected while parsing a Snowflake batch
!  dummy AS a;                                        expecting one of: End of batch, Select Statement, Statement, '(', ';', 'CALL', 'COMMENT', 'DECLARE', 'EXCEPT', 'GET', 'INTERSECT', 'LET'...
!                                                     Unparsable text: AS
!                                                     Unparsable text: conv_ts
!                                                     Unparsable text: FROM
!                                                     Unparsable text: dummy
!                                                     Unparsable text: a
!                                                     Unparsable text: ;
!                                                     Unparsable text: parser recovered by ignoring: AS conv_ts FROM dummy a;
!                                                  */
!                                                 /* The following issues were detected:
                                                  
!                                                    Unparsed input - ErrorNode encountered
!                                                     Unparsable text: SELECT a.col1, CONVERT_TIMEZONE('IST', a.ts_col) AS conv_ts FROM dummy
!                                                  */
!                                                 /* The following issues were detected:
                                                  
!                                                    Unparsed input - ErrorNode encountered
!                                                     Unparsable text: SELECT
!                                                     Unparsable text: a
!                                                     Unparsable text: .
!                                                     Unparsable text: col1
!                                                     Unparsable text: ,
!                                                     Unparsable text: CONVERT_TIMEZONE
!                                                     Unparsable text: parser recovered by ignoring: SELECT a.col1, CONVERT_TIMEZONE(
!                                                  */
!                                                 SELECT
!                                                 ;

      at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
      at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
      at org.scalatest.flatspec.AnyFlatSpec.newAssertionFailedException(AnyFlatSpec.scala:1685)
      at org.scalatest.Assertions.fail(Assertions.scala:933)
      at org.scalatest.Assertions.fail$(Assertions.scala:929)
      at org.scalatest.flatspec.AnyFlatSpec.fail(AnyFlatSpec.scala:1685)
      at com.databricks.labs.remorph.coverage.AcceptanceSpec.$anonfun$new$2(AcceptanceSpec.scala:15)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1684)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1682)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1694)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1694)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1676)
      at org.scalatest.flatspec.AnyFlatSpec.runTest(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1752)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1752)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1751)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.run(Suite.scala:1112)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1797)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1797)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1795)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1175)
      at org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1222)
      at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
      at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
      at org.scalatest.Suite.runNestedSuites(Suite.scala:1220)
      at org.scalatest.Suite.runNestedSuites$(Suite.scala:1154)
      at org.scalatest.tools.DiscoverySuite.runNestedSuites(DiscoverySuite.scala:30)
      at org.scalatest.Suite.run(Suite.scala:1109)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.tools.DiscoverySuite.run(DiscoverySuite.scala:30)
      at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13(Runner.scala:1320)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13$adapted(Runner.scala:1314)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1314)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24(Runner.scala:993)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24$adapted(Runner.scala:971)
      at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1480)
      at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:971)
      at org.scalatest.tools.Runner$.main(Runner.scala:775)
      at org.scalatest.tools.Runner.main(Runner.scala)

Check warning on line 0 in com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite

See this annotation in the file changed.

@github-actions github-actions / Coverage Tests Results

functions/tovarchar_1.sql (com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite) failed

core/target/surefire-reports/TEST-com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite.xml [took 0s]
Raw output
&#010;=== Unexpected output (expected vs actual) ===&#010;!SELECT                                      /* The following issues were detected:&#010;!  TO_CHAR(-12454.8, '99,999.9S'),           &#010;!  '>' || TO_CHAR(col1, '00000.00') || '<'      Unparsed input - ErrorNode encountered&#010;!FROM                                            Unparsable text: ',' was unexpected while parsing a Snowflake batch&#010;!  dummy;                                        expecting one of: End of batch, Select Statement, Statement, '(', ';', 'CALL', 'COMMENT', 'DECLARE', 'EXCEPT', 'GET', 'INTERSECT', 'LET'...&#010;!                                                Unparsable text: ,&#010;!                                                Unparsable text: '&#010;!                                                Unparsable text: >&#010;!                                                Unparsable text: '&#010;!                                                Unparsable text: ||&#010;!                                                Unparsable text: to_char&#010;!                                                Unparsable text: (&#010;!                                                Unparsable text: col1&#010;!                                                Unparsable text: ,&#010;!                                                Unparsable text: '&#010;!                                                Unparsable text: 00000.00&#010;!                                                Unparsable text: '&#010;!                                                Unparsable text: )&#010;!                                                Unparsable text: ||&#010;!                                                Unparsable text: '&#010;!                                                Unparsable text: <&#010;!                                                Unparsable text: '&#010;!                                                Unparsable text: FROM&#010;!                                                Unparsable text: dummy&#010;!                                                Unparsable text: ;&#010;!                                                Unparsable text: parser recovered by ignoring: ,&#010;!                                                                '>' || to_char(col1, '00000.00') || '<' FROM dummy;&#010;!                                             */&#010;!                                            /* The following issues were detected:&#010;                                             &#010;!                                               Unparsed input - ErrorNode encountered&#010;!                                                Unparsable text: select to_varchar(-12454.8, '99,999.9S'),&#010;!                                                                '>' || to_char(col1, '00000.00') || '<' FROM dummy&#010;!                                             */&#010;!                                            /* The following issues were detected:&#010;                                             &#010;!                                               Unparsed input - ErrorNode encountered&#010;!                                                Unparsable text: select&#010;!                                                Unparsable text: to_varchar&#010;!                                                Unparsable text: parser recovered by ignoring: select to_varchar(&#010;!                                             */&#010;!                                            SELECT&#010;!                                            ;&#010;

      org.scalatest.exceptions.TestFailedException: 
=== Unexpected output (expected vs actual) ===
!SELECT                                      /* The following issues were detected:
!  TO_CHAR(-12454.8, '99,999.9S'),           
!  '>' || TO_CHAR(col1, '00000.00') || '<'      Unparsed input - ErrorNode encountered
!FROM                                            Unparsable text: ',' was unexpected while parsing a Snowflake batch
!  dummy;                                        expecting one of: End of batch, Select Statement, Statement, '(', ';', 'CALL', 'COMMENT', 'DECLARE', 'EXCEPT', 'GET', 'INTERSECT', 'LET'...
!                                                Unparsable text: ,
!                                                Unparsable text: '
!                                                Unparsable text: >
!                                                Unparsable text: '
!                                                Unparsable text: ||
!                                                Unparsable text: to_char
!                                                Unparsable text: (
!                                                Unparsable text: col1
!                                                Unparsable text: ,
!                                                Unparsable text: '
!                                                Unparsable text: 00000.00
!                                                Unparsable text: '
!                                                Unparsable text: )
!                                                Unparsable text: ||
!                                                Unparsable text: '
!                                                Unparsable text: <
!                                                Unparsable text: '
!                                                Unparsable text: FROM
!                                                Unparsable text: dummy
!                                                Unparsable text: ;
!                                                Unparsable text: parser recovered by ignoring: ,
!                                                                '>' || to_char(col1, '00000.00') || '<' FROM dummy;
!                                             */
!                                            /* The following issues were detected:
                                             
!                                               Unparsed input - ErrorNode encountered
!                                                Unparsable text: select to_varchar(-12454.8, '99,999.9S'),
!                                                                '>' || to_char(col1, '00000.00') || '<' FROM dummy
!                                             */
!                                            /* The following issues were detected:
                                             
!                                               Unparsed input - ErrorNode encountered
!                                                Unparsable text: select
!                                                Unparsable text: to_varchar
!                                                Unparsable text: parser recovered by ignoring: select to_varchar(
!                                             */
!                                            SELECT
!                                            ;

      at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
      at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
      at org.scalatest.flatspec.AnyFlatSpec.newAssertionFailedException(AnyFlatSpec.scala:1685)
      at org.scalatest.Assertions.fail(Assertions.scala:933)
      at org.scalatest.Assertions.fail$(Assertions.scala:929)
      at org.scalatest.flatspec.AnyFlatSpec.fail(AnyFlatSpec.scala:1685)
      at com.databricks.labs.remorph.coverage.AcceptanceSpec.$anonfun$new$2(AcceptanceSpec.scala:15)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1684)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1682)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1694)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1694)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1676)
      at org.scalatest.flatspec.AnyFlatSpec.runTest(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1752)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1752)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1751)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.run(Suite.scala:1112)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1797)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1797)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1795)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1175)
      at org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1222)
      at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
      at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
      at org.scalatest.Suite.runNestedSuites(Suite.scala:1220)
      at org.scalatest.Suite.runNestedSuites$(Suite.scala:1154)
      at org.scalatest.tools.DiscoverySuite.runNestedSuites(DiscoverySuite.scala:30)
      at org.scalatest.Suite.run(Suite.scala:1109)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.tools.DiscoverySuite.run(DiscoverySuite.scala:30)
      at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13(Runner.scala:1320)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13$adapted(Runner.scala:1314)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1314)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24(Runner.scala:993)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24$adapted(Runner.scala:971)
      at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1480)
      at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:971)
      at org.scalatest.tools.Runner$.main(Runner.scala:775)
      at org.scalatest.tools.Runner.main(Runner.scala)

Check warning on line 0 in com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite

See this annotation in the file changed.

@github-actions github-actions / Coverage Tests Results

joins/test_join_1.sql (com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite) failed

core/target/surefire-reports/TEST-com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite.xml [took 0s]
Raw output
&#010;=== Unexpected output (expected vs actual) ===&#010; SELECT      SELECT&#010;   t1.c1,      t1.c1,&#010;   t2.c2       t2.c2&#010; FROM        FROM&#010;   t1          t1&#010;!  JOIN t2     JOIN t2 AS&#010; USING       USING&#010;!  (c3);     (c3);&#010;

      org.scalatest.exceptions.TestFailedException: 
=== Unexpected output (expected vs actual) ===
 SELECT      SELECT
   t1.c1,      t1.c1,
   t2.c2       t2.c2
 FROM        FROM
   t1          t1
!  JOIN t2     JOIN t2 AS
 USING       USING
!  (c3);     (c3);

      at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
      at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
      at org.scalatest.flatspec.AnyFlatSpec.newAssertionFailedException(AnyFlatSpec.scala:1685)
      at org.scalatest.Assertions.fail(Assertions.scala:933)
      at org.scalatest.Assertions.fail$(Assertions.scala:929)
      at org.scalatest.flatspec.AnyFlatSpec.fail(AnyFlatSpec.scala:1685)
      at com.databricks.labs.remorph.coverage.AcceptanceSpec.$anonfun$new$2(AcceptanceSpec.scala:15)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1684)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1682)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1694)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1694)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1676)
      at org.scalatest.flatspec.AnyFlatSpec.runTest(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1752)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1752)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1751)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.run(Suite.scala:1112)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1797)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1797)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1795)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1175)
      at org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1222)
      at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
      at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
      at org.scalatest.Suite.runNestedSuites(Suite.scala:1220)
      at org.scalatest.Suite.runNestedSuites$(Suite.scala:1154)
      at org.scalatest.tools.DiscoverySuite.runNestedSuites(DiscoverySuite.scala:30)
      at org.scalatest.Suite.run(Suite.scala:1109)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.tools.DiscoverySuite.run(DiscoverySuite.scala:30)
      at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13(Runner.scala:1320)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13$adapted(Runner.scala:1314)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1314)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24(Runner.scala:993)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24$adapted(Runner.scala:971)
      at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1480)
      at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:971)
      at org.scalatest.tools.Runner$.main(Runner.scala:775)
      at org.scalatest.tools.Runner.main(Runner.scala)

Check warning on line 0 in com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite

See this annotation in the file changed.

@github-actions github-actions / Coverage Tests Results

misc/test_contains_1.sql (com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite) failed

core/target/surefire-reports/TEST-com.databricks.labs.remorph.coverage.SnowflakeAcceptanceSuite.xml [took 0s]
Raw output
&#010;=== Unexpected output (expected vs actual) ===&#010;!SELECT                             /* The following issues were detected:&#010;!  CONTAINS('SparkSQL', 'Spark');   &#010;!                                      Unparsed input - ErrorNode encountered&#010;!                                       Unparsable text: SELECT contains&#010;!                                    */&#010;!                                   /* The following issues were detected:&#010;                                    &#010;!                                      Unparsed input - ErrorNode encountered&#010;!                                       Unparsable text: SELECT&#010;!                                       Unparsable text: contains&#010;!                                       Unparsable text: parser recovered by ignoring: SELECT contains(&#010;!                                    */&#010;!                                   SELECT&#010;!                                   ;&#010;

      org.scalatest.exceptions.TestFailedException: 
=== Unexpected output (expected vs actual) ===
!SELECT                             /* The following issues were detected:
!  CONTAINS('SparkSQL', 'Spark');   
!                                      Unparsed input - ErrorNode encountered
!                                       Unparsable text: SELECT contains
!                                    */
!                                   /* The following issues were detected:
                                    
!                                      Unparsed input - ErrorNode encountered
!                                       Unparsable text: SELECT
!                                       Unparsable text: contains
!                                       Unparsable text: parser recovered by ignoring: SELECT contains(
!                                    */
!                                   SELECT
!                                   ;

      at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
      at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
      at org.scalatest.flatspec.AnyFlatSpec.newAssertionFailedException(AnyFlatSpec.scala:1685)
      at org.scalatest.Assertions.fail(Assertions.scala:933)
      at org.scalatest.Assertions.fail$(Assertions.scala:929)
      at org.scalatest.flatspec.AnyFlatSpec.fail(AnyFlatSpec.scala:1685)
      at com.databricks.labs.remorph.coverage.AcceptanceSpec.$anonfun$new$2(AcceptanceSpec.scala:15)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1684)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1682)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1694)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1694)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1676)
      at org.scalatest.flatspec.AnyFlatSpec.runTest(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1752)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1752)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1751)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.run(Suite.scala:1112)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1685)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1797)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1797)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1795)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1685)
      at org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1175)
      at org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1222)
      at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
      at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
      at org.scalatest.Suite.runNestedSuites(Suite.scala:1220)
      at org.scalatest.Suite.runNestedSuites$(Suite.scala:1154)
      at org.scalatest.tools.DiscoverySuite.runNestedSuites(DiscoverySuite.scala:30)
      at org.scalatest.Suite.run(Suite.scala:1109)
      at org.scalatest.Suite.run$(Suite.scala:1094)
      at org.scalatest.tools.DiscoverySuite.run(DiscoverySuite.scala:30)
      at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13(Runner.scala:1320)
      at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13$adapted(Runner.scala:1314)
      at scala.collection.immutable.List.foreach(List.scala:431)
      at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1314)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24(Runner.scala:993)
      at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24$adapted(Runner.scala:971)
      at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1480)
      at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:971)
      at org.scalatest.tools.Runner$.main(Runner.scala:775)
      at org.scalatest.tools.Runner.main(Runner.scala)