[jira] [Commented] (BEAM-9253) SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

2020-02-21 Thread Brian Hulette (Jira)


[ 
https://issues.apache.org/jira/browse/BEAM-9253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17042021#comment-17042021
 ] 

Brian Hulette commented on BEAM-9253:
-

Yep! Closed now

> SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast 
> to java.lang.Long
> --
>
> Key: BEAM-9253
> URL: https://issues.apache.org/jira/browse/BEAM-9253
> Project: Beam
>  Issue Type: Bug
>  Components: test-failures
>Reporter: Tomo Suzuki
>Assignee: Brian Hulette
>Priority: Major
> Fix For: 2.20.0
>
> Attachments: VarLongCoder_is_applied_Integer.png
>
>
> SQL Postcommit check started failing since build number 3924. The first 
> failure: https://builds.apache.org/job/beam_PostCommit_SQL/3924/
> {noformat}
> org.apache.beam.sdk.extensions.sql.meta.provider.datacatalog.DataCatalogGCSIT.testReadFromGCS
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.Long
>   at org.apache.beam.sdk.coders.VarLongCoder.encode(VarLongCoder.java:35)
>   at 
> org.apache.beam.sdk.coders.RowCoderGenerator$EncodeInstruction.encodeDelegate(RowCoderGenerator.java:239)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.schemas.SchemaCoder.encode(SchemaCoder.java:166)
>   at 
> org.apache.beam.sdk.coders.IterableLikeCoder.encode(IterableLikeCoder.java:98)
> {noformat}
> History: https://builds.apache.org/job/beam_PostCommit_SQL/
> Pull request before the failure: 
> https://github.com/apache/beam/pull/10563#issuecomment-582384925
> DataCatalogGCSIT does not run locally: 
> https://gist.github.com/suztomo/43de4ff1f0458e801fef1a16a28da301
> DataCatalogGCSIT reads this Google Cloud Storage object:
> {code:java}
> String gcsEntryId =
> "`datacatalog`" // this is part of the resource name in DataCatalog, 
> so it has to be
> + ".`entry`" // different from the table provider name ("dc" in 
> this test)
> + ".`apache-beam-testing`"
> + ".`us-central1`"
> + ".`samples`"
> + ".`integ_test_small_csv_test_1`";
> {code}
> but I cannot see the content.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (BEAM-9253) SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

2020-02-21 Thread Jira


[ 
https://issues.apache.org/jira/browse/BEAM-9253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17041757#comment-17041757
 ] 

Ismaël Mejía commented on BEAM-9253:


Is this done [~bhulette] can we resolve this issue?

> SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast 
> to java.lang.Long
> --
>
> Key: BEAM-9253
> URL: https://issues.apache.org/jira/browse/BEAM-9253
> Project: Beam
>  Issue Type: Bug
>  Components: test-failures
>Reporter: Tomo Suzuki
>Assignee: Brian Hulette
>Priority: Major
> Fix For: 2.20.0
>
> Attachments: VarLongCoder_is_applied_Integer.png
>
>
> SQL Postcommit check started failing since build number 3924. The first 
> failure: https://builds.apache.org/job/beam_PostCommit_SQL/3924/
> {noformat}
> org.apache.beam.sdk.extensions.sql.meta.provider.datacatalog.DataCatalogGCSIT.testReadFromGCS
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.Long
>   at org.apache.beam.sdk.coders.VarLongCoder.encode(VarLongCoder.java:35)
>   at 
> org.apache.beam.sdk.coders.RowCoderGenerator$EncodeInstruction.encodeDelegate(RowCoderGenerator.java:239)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.schemas.SchemaCoder.encode(SchemaCoder.java:166)
>   at 
> org.apache.beam.sdk.coders.IterableLikeCoder.encode(IterableLikeCoder.java:98)
> {noformat}
> History: https://builds.apache.org/job/beam_PostCommit_SQL/
> Pull request before the failure: 
> https://github.com/apache/beam/pull/10563#issuecomment-582384925
> DataCatalogGCSIT does not run locally: 
> https://gist.github.com/suztomo/43de4ff1f0458e801fef1a16a28da301
> DataCatalogGCSIT reads this Google Cloud Storage object:
> {code:java}
> String gcsEntryId =
> "`datacatalog`" // this is part of the resource name in DataCatalog, 
> so it has to be
> + ".`entry`" // different from the table provider name ("dc" in 
> this test)
> + ".`apache-beam-testing`"
> + ".`us-central1`"
> + ".`samples`"
> + ".`integ_test_small_csv_test_1`";
> {code}
> but I cannot see the content.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (BEAM-9253) SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

2020-02-06 Thread Tomo Suzuki (Jira)


[ 
https://issues.apache.org/jira/browse/BEAM-9253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17031826#comment-17031826
 ] 

Tomo Suzuki commented on BEAM-9253:
---

[~bhulette] Thank you for resolving this.

> SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast 
> to java.lang.Long
> --
>
> Key: BEAM-9253
> URL: https://issues.apache.org/jira/browse/BEAM-9253
> Project: Beam
>  Issue Type: Bug
>  Components: test-failures
>Reporter: Tomo Suzuki
>Assignee: Brian Hulette
>Priority: Major
> Fix For: 2.20.0
>
> Attachments: VarLongCoder_is_applied_Integer.png
>
>
> SQL Postcommit check started failing since build number 3924. The first 
> failure: https://builds.apache.org/job/beam_PostCommit_SQL/3924/
> {noformat}
> org.apache.beam.sdk.extensions.sql.meta.provider.datacatalog.DataCatalogGCSIT.testReadFromGCS
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.Long
>   at org.apache.beam.sdk.coders.VarLongCoder.encode(VarLongCoder.java:35)
>   at 
> org.apache.beam.sdk.coders.RowCoderGenerator$EncodeInstruction.encodeDelegate(RowCoderGenerator.java:239)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.schemas.SchemaCoder.encode(SchemaCoder.java:166)
>   at 
> org.apache.beam.sdk.coders.IterableLikeCoder.encode(IterableLikeCoder.java:98)
> {noformat}
> History: https://builds.apache.org/job/beam_PostCommit_SQL/
> Pull request before the failure: 
> https://github.com/apache/beam/pull/10563#issuecomment-582384925
> DataCatalogGCSIT does not run locally: 
> https://gist.github.com/suztomo/43de4ff1f0458e801fef1a16a28da301
> DataCatalogGCSIT reads this Google Cloud Storage object:
> {code:java}
> String gcsEntryId =
> "`datacatalog`" // this is part of the resource name in DataCatalog, 
> so it has to be
> + ".`entry`" // different from the table provider name ("dc" in 
> this test)
> + ".`apache-beam-testing`"
> + ".`us-central1`"
> + ".`samples`"
> + ".`integ_test_small_csv_test_1`";
> {code}
> but I cannot see the content.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (BEAM-9253) SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

2020-02-05 Thread Tomo Suzuki (Jira)


[ 
https://issues.apache.org/jira/browse/BEAM-9253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17031076#comment-17031076
 ] 

Tomo Suzuki commented on BEAM-9253:
---

[~bhulette] Once you fix the schema, would you run "Run SQL Postcommit" in 
https://github.com/apache/beam/pull/10765 to confirm the effect?

> SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast 
> to java.lang.Long
> --
>
> Key: BEAM-9253
> URL: https://issues.apache.org/jira/browse/BEAM-9253
> Project: Beam
>  Issue Type: Bug
>  Components: test-failures
>Reporter: Tomo Suzuki
>Assignee: Brian Hulette
>Priority: Major
> Fix For: 2.20.0
>
> Attachments: VarLongCoder_is_applied_Integer.png
>
>
> SQL Postcommit check started failing since build number 3924. The first 
> failure: https://builds.apache.org/job/beam_PostCommit_SQL/3924/
> {noformat}
> org.apache.beam.sdk.extensions.sql.meta.provider.datacatalog.DataCatalogGCSIT.testReadFromGCS
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.Long
>   at org.apache.beam.sdk.coders.VarLongCoder.encode(VarLongCoder.java:35)
>   at 
> org.apache.beam.sdk.coders.RowCoderGenerator$EncodeInstruction.encodeDelegate(RowCoderGenerator.java:239)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.schemas.SchemaCoder.encode(SchemaCoder.java:166)
>   at 
> org.apache.beam.sdk.coders.IterableLikeCoder.encode(IterableLikeCoder.java:98)
> {noformat}
> History: https://builds.apache.org/job/beam_PostCommit_SQL/
> Pull request before the failure: 
> https://github.com/apache/beam/pull/10563#issuecomment-582384925
> DataCatalogGCSIT does not run locally: 
> https://gist.github.com/suztomo/43de4ff1f0458e801fef1a16a28da301
> DataCatalogGCSIT reads this Google Cloud Storage object:
> {code:java}
> String gcsEntryId =
> "`datacatalog`" // this is part of the resource name in DataCatalog, 
> so it has to be
> + ".`entry`" // different from the table provider name ("dc" in 
> this test)
> + ".`apache-beam-testing`"
> + ".`us-central1`"
> + ".`samples`"
> + ".`integ_test_small_csv_test_1`";
> {code}
> but I cannot see the content.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (BEAM-9253) SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

2020-02-05 Thread Brian Hulette (Jira)


[ 
https://issues.apache.org/jira/browse/BEAM-9253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17031046#comment-17031046
 ] 

Brian Hulette commented on BEAM-9253:
-

It looks like the integ_test_small_csv_test_1 schema has id as an INT64. It 
also says it was last updated 2/4. Looks like this is unrelated to the linked 
PR, somehow the schema just got changed?

{code}
❯ gcloud beta data-catalog entries lookup 
'`datacatalog`.`entry`.`apache-beam-testing`.`us-central1`.`samples`.`integ_test_small_csv_test_1`'``
gcsFilesetSpec:
  filePatterns:
  - gs://apache-beam-samples/integration_test_small_csv/test.csv
linkedResource: 
//datacatalog.googleapis.com/projects/apache-beam-testing/locations/us-central1/entryGroups/samples/entries/integ_test_small_csv_test_1
name: 
projects/apache-beam-testing/locations/us-central1/entryGroups/samples/entries/integ_test_small_csv_test_1
schema:
  columns:
  - column: id
mode: NULLABLE
type: INT64
  - column: name
mode: NULLABLE
type: STRING
  - column: type
mode: NULLABLE
type: STRING
sourceSystemTimestamps:
  createTime: '2019-08-16T01:49:06.235Z'
  updateTime: '2020-02-04T17:18:17.671Z'
type: FILESET
{code}

> SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast 
> to java.lang.Long
> --
>
> Key: BEAM-9253
> URL: https://issues.apache.org/jira/browse/BEAM-9253
> Project: Beam
>  Issue Type: Bug
>  Components: test-failures
>Reporter: Tomo Suzuki
>Assignee: Brian Hulette
>Priority: Major
> Fix For: 2.20.0
>
> Attachments: VarLongCoder_is_applied_Integer.png
>
>
> SQL Postcommit check started failing since build number 3924. The first 
> failure: https://builds.apache.org/job/beam_PostCommit_SQL/3924/
> {noformat}
> org.apache.beam.sdk.extensions.sql.meta.provider.datacatalog.DataCatalogGCSIT.testReadFromGCS
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.Long
>   at org.apache.beam.sdk.coders.VarLongCoder.encode(VarLongCoder.java:35)
>   at 
> org.apache.beam.sdk.coders.RowCoderGenerator$EncodeInstruction.encodeDelegate(RowCoderGenerator.java:239)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.schemas.SchemaCoder.encode(SchemaCoder.java:166)
>   at 
> org.apache.beam.sdk.coders.IterableLikeCoder.encode(IterableLikeCoder.java:98)
> {noformat}
> History: https://builds.apache.org/job/beam_PostCommit_SQL/
> Pull request before the failure: 
> https://github.com/apache/beam/pull/10563#issuecomment-582384925
> DataCatalogGCSIT does not run locally: 
> https://gist.github.com/suztomo/43de4ff1f0458e801fef1a16a28da301
> DataCatalogGCSIT reads this Google Cloud Storage object:
> {code:java}
> String gcsEntryId =
> "`datacatalog`" // this is part of the resource name in DataCatalog, 
> so it has to be
> + ".`entry`" // different from the table provider name ("dc" in 
> this test)
> + ".`apache-beam-testing`"
> + ".`us-central1`"
> + ".`samples`"
> + ".`integ_test_small_csv_test_1`";
> {code}
> but I cannot see the content.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (BEAM-9253) SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

2020-02-05 Thread Brian Hulette (Jira)


[ 
https://issues.apache.org/jira/browse/BEAM-9253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17031023#comment-17031023
 ] 

Brian Hulette commented on BEAM-9253:
-

I can take a look at this. I took a look at the diff in the culprit PR and I 
have no idea how it could cause this..

> SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast 
> to java.lang.Long
> --
>
> Key: BEAM-9253
> URL: https://issues.apache.org/jira/browse/BEAM-9253
> Project: Beam
>  Issue Type: Bug
>  Components: test-failures
>Reporter: Tomo Suzuki
>Assignee: Brian Hulette
>Priority: Major
> Attachments: VarLongCoder_is_applied_Integer.png
>
>
> SQL Postcommit check started failing since build number 3924. The first 
> failure: https://builds.apache.org/job/beam_PostCommit_SQL/3924/
> {noformat}
> org.apache.beam.sdk.extensions.sql.meta.provider.datacatalog.DataCatalogGCSIT.testReadFromGCS
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.Long
>   at org.apache.beam.sdk.coders.VarLongCoder.encode(VarLongCoder.java:35)
>   at 
> org.apache.beam.sdk.coders.RowCoderGenerator$EncodeInstruction.encodeDelegate(RowCoderGenerator.java:239)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.schemas.SchemaCoder.encode(SchemaCoder.java:166)
>   at 
> org.apache.beam.sdk.coders.IterableLikeCoder.encode(IterableLikeCoder.java:98)
> {noformat}
> History: https://builds.apache.org/job/beam_PostCommit_SQL/
> Pull request before the failure: 
> https://github.com/apache/beam/pull/10563#issuecomment-582384925
> DataCatalogGCSIT does not run locally: 
> https://gist.github.com/suztomo/43de4ff1f0458e801fef1a16a28da301
> DataCatalogGCSIT reads this Google Cloud Storage object:
> {code:java}
> String gcsEntryId =
> "`datacatalog`" // this is part of the resource name in DataCatalog, 
> so it has to be
> + ".`entry`" // different from the table provider name ("dc" in 
> this test)
> + ".`apache-beam-testing`"
> + ".`us-central1`"
> + ".`samples`"
> + ".`integ_test_small_csv_test_1`";
> {code}
> but I cannot see the content.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (BEAM-9253) SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

2020-02-05 Thread Tomo Suzuki (Jira)


[ 
https://issues.apache.org/jira/browse/BEAM-9253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17030991#comment-17030991
 ] 

Tomo Suzuki commented on BEAM-9253:
---

 !VarLongCoder_is_applied_Integer.png! 

> SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast 
> to java.lang.Long
> --
>
> Key: BEAM-9253
> URL: https://issues.apache.org/jira/browse/BEAM-9253
> Project: Beam
>  Issue Type: Bug
>  Components: test-failures
>Reporter: Tomo Suzuki
>Priority: Major
> Attachments: VarLongCoder_is_applied_Integer.png
>
>
> SQL Postcommit check started failing since build number 3924. The first 
> failure: https://builds.apache.org/job/beam_PostCommit_SQL/3924/
> {noformat}
> org.apache.beam.sdk.extensions.sql.meta.provider.datacatalog.DataCatalogGCSIT.testReadFromGCS
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.Long
>   at org.apache.beam.sdk.coders.VarLongCoder.encode(VarLongCoder.java:35)
>   at 
> org.apache.beam.sdk.coders.RowCoderGenerator$EncodeInstruction.encodeDelegate(RowCoderGenerator.java:239)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.schemas.SchemaCoder.encode(SchemaCoder.java:166)
>   at 
> org.apache.beam.sdk.coders.IterableLikeCoder.encode(IterableLikeCoder.java:98)
> {noformat}
> History: https://builds.apache.org/job/beam_PostCommit_SQL/
> Pull request before the failure: 
> https://github.com/apache/beam/pull/10563#issuecomment-582384925
> DataCatalogGCSIT does not run locally: 
> https://gist.github.com/suztomo/43de4ff1f0458e801fef1a16a28da301
> DataCatalogGCSIT reads this Google Cloud Storage object:
> {code:java}
> String gcsEntryId =
> "`datacatalog`" // this is part of the resource name in DataCatalog, 
> so it has to be
> + ".`entry`" // different from the table provider name ("dc" in 
> this test)
> + ".`apache-beam-testing`"
> + ".`us-central1`"
> + ".`samples`"
> + ".`integ_test_small_csv_test_1`";
> {code}
> but I cannot see the content.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (BEAM-9253) SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

2020-02-05 Thread Jira


[ 
https://issues.apache.org/jira/browse/BEAM-9253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17030724#comment-17030724
 ] 

Ismaël Mejía commented on BEAM-9253:


Can someone with more SQL experience take a look at this, it does not look at 
all related to KafkaIO. [~apilloud] or someone else?

> SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast 
> to java.lang.Long
> --
>
> Key: BEAM-9253
> URL: https://issues.apache.org/jira/browse/BEAM-9253
> Project: Beam
>  Issue Type: Bug
>  Components: test-failures
>Reporter: Tomo Suzuki
>Priority: Major
>
> SQL Postcommit check started failing since build number 3924. The first 
> failure: https://builds.apache.org/job/beam_PostCommit_SQL/3924/
> {noformat}
> org.apache.beam.sdk.extensions.sql.meta.provider.datacatalog.DataCatalogGCSIT.testReadFromGCS
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.Long
>   at org.apache.beam.sdk.coders.VarLongCoder.encode(VarLongCoder.java:35)
>   at 
> org.apache.beam.sdk.coders.RowCoderGenerator$EncodeInstruction.encodeDelegate(RowCoderGenerator.java:239)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.schemas.SchemaCoder.encode(SchemaCoder.java:166)
>   at 
> org.apache.beam.sdk.coders.IterableLikeCoder.encode(IterableLikeCoder.java:98)
> {noformat}
> History: https://builds.apache.org/job/beam_PostCommit_SQL/
> Pull request before the failure: 
> https://github.com/apache/beam/pull/10563#issuecomment-582384925
> DataCatalogGCSIT does not run locally: 
> https://gist.github.com/suztomo/43de4ff1f0458e801fef1a16a28da301
> DataCatalogGCSIT reads this Google Cloud Storage object:
> {code:java}
> String gcsEntryId =
> "`datacatalog`" // this is part of the resource name in DataCatalog, 
> so it has to be
> + ".`entry`" // different from the table provider name ("dc" in 
> this test)
> + ".`apache-beam-testing`"
> + ".`us-central1`"
> + ".`samples`"
> + ".`integ_test_small_csv_test_1`";
> {code}
> but I cannot see the content.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (BEAM-9253) SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

2020-02-05 Thread Alexey Romanenko (Jira)


[ 
https://issues.apache.org/jira/browse/BEAM-9253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17030661#comment-17030661
 ] 

Alexey Romanenko commented on BEAM-9253:


More details about failing test:
{code}
:sdks:java:extensions:sql:datacatalog:integrationTest » 
org.apache.beam.sdk.extensions.sql.meta.provider.datacatalog.DataCatalogGCSIT » 
testReadFromGCS (7.486s)
java.lang.Integer cannot be cast to java.lang.Long
java.lang.ClassCastException: java.lang.Integer cannot be cast to 
java.lang.LongOpen stacktrace
[Test worker] INFO org.apache.beam.sdk.extensions.sql.impl.CalciteQueryPlanner 
- SQL:
SELECT `integ_test_small_csv_test_1`.`id`, 
`integ_test_small_csv_test_1`.`name`, `integ_test_small_csv_test_1`.`type`
FROM 
`dc`.`datacatalog`.`entry`.`apache-beam-testing`.`us-central1`.`samples`.`integ_test_small_csv_test_1`
 AS `integ_test_small_csv_test_1`
[Test worker] INFO org.apache.beam.sdk.extensions.sql.impl.CalciteQueryPlanner 
- SQLPlan>
LogicalProject(id=[$0], name=[$1], type=[$2])
  BeamIOSourceRel(table=[[dc, datacatalog, entry, apache-beam-testing, 
us-central1, samples, integ_test_small_csv_test_1]])
[Test worker] INFO org.apache.beam.sdk.extensions.sql.impl.CalciteQueryPlanner 
- BEAMPlan>
BeamCalcRel(expr#0..2=[{inputs}], proj#0..2=[{exprs}])
  BeamIOSourceRel(table=[[dc, datacatalog, entry, apache-beam-testing, 
us-central1, samples, integ_test_small_csv_test_1]])
{code}

> SQL PostCommit failure: ClassCastException: java.lang.Integer cannot be cast 
> to java.lang.Long
> --
>
> Key: BEAM-9253
> URL: https://issues.apache.org/jira/browse/BEAM-9253
> Project: Beam
>  Issue Type: Bug
>  Components: test-failures
>Reporter: Tomo Suzuki
>Priority: Major
>
> SQL Postcommit check started failing since build number 3924. The first 
> failure: https://builds.apache.org/job/beam_PostCommit_SQL/3924/
> {noformat}
> org.apache.beam.sdk.extensions.sql.meta.provider.datacatalog.DataCatalogGCSIT.testReadFromGCS
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.Long
>   at org.apache.beam.sdk.coders.VarLongCoder.encode(VarLongCoder.java:35)
>   at 
> org.apache.beam.sdk.coders.RowCoderGenerator$EncodeInstruction.encodeDelegate(RowCoderGenerator.java:239)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.coders.Coder$ByteBuddy$WZzHUNls.encode(Unknown 
> Source)
>   at org.apache.beam.sdk.schemas.SchemaCoder.encode(SchemaCoder.java:166)
>   at 
> org.apache.beam.sdk.coders.IterableLikeCoder.encode(IterableLikeCoder.java:98)
> {noformat}
> History: https://builds.apache.org/job/beam_PostCommit_SQL/
> Pull request before the failure: 
> https://github.com/apache/beam/pull/10563#issuecomment-582384925
> DataCatalogGCSIT does not run locally: 
> https://gist.github.com/suztomo/43de4ff1f0458e801fef1a16a28da301
> DataCatalogGCSIT reads this Google Cloud Storage object:
> {code:java}
> String gcsEntryId =
> "`datacatalog`" // this is part of the resource name in DataCatalog, 
> so it has to be
> + ".`entry`" // different from the table provider name ("dc" in 
> this test)
> + ".`apache-beam-testing`"
> + ".`us-central1`"
> + ".`samples`"
> + ".`integ_test_small_csv_test_1`";
> {code}
> but I cannot see the content.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)