You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Matthias Pohl (Jira)" <ji...@apache.org> on 2022/11/23 09:13:00 UTC

[jira] [Created] (FLINK-30163) StreamPandasUDFITTests.test_basic_functionality failed

Matthias Pohl created FLINK-30163:
-------------------------------------

             Summary: StreamPandasUDFITTests.test_basic_functionality failed
                 Key: FLINK-30163
                 URL: https://issues.apache.org/jira/browse/FLINK-30163
             Project: Flink
          Issue Type: Bug
          Components: API / Python
    Affects Versions: 1.15.2
            Reporter: Matthias Pohl


[This build|https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=42956&view=logs&j=bf5e383b-9fd3-5f02-ca1c-8f788e2e76d3&t=85189c57-d8a0-5c9c-b61d-fc05cfac62cf&l=26331] failed due to {{StreamPandasUDFITTests.test_basic_functionality}}
{code:java}
ov 09 01:49:14 _______________ StreamPandasUDFITTests.test_basic_functionality ________________
Nov 09 01:49:14 
Nov 09 01:49:14 self = <pyflink.table.tests.test_pandas_udf.StreamPandasUDFITTests testMethod=test_basic_functionality>
Nov 09 01:49:14 
Nov 09 01:49:14     def test_basic_functionality(self):
Nov 09 01:49:14         # pandas UDF
Nov 09 01:49:14         add_one = udf(lambda i: i + 1, result_type=DataTypes.BIGINT(), func_type="pandas")
Nov 09 01:49:14     
Nov 09 01:49:14         # general Python UDF
Nov 09 01:49:14         subtract_one = udf(SubtractOne(), DataTypes.BIGINT(), DataTypes.BIGINT())
Nov 09 01:49:14     
Nov 09 01:49:14         table_sink = source_sink_utils.TestAppendSink(
Nov 09 01:49:14             ['a', 'b', 'c', 'd'],
Nov 09 01:49:14             [DataTypes.BIGINT(), DataTypes.BIGINT(), DataTypes.BIGINT(), DataTypes.BIGINT()])
Nov 09 01:49:14         self.t_env.register_table_sink("Results", table_sink)
Nov 09 01:49:14     
Nov 09 01:49:14         t = self.t_env.from_elements([(1, 2, 3), (2, 5, 6), (3, 1, 9)], ['a', 'b', 'c'])
Nov 09 01:49:14         t.where(add_one(t.b) <= 3) \
Nov 09 01:49:14             .select(t.a, t.b + 1, add(t.a + 1, subtract_one(t.c)) + 2, add(add_one(t.a), 1)) \
Nov 09 01:49:14 >           .execute_insert("Results") \
Nov 09 01:49:14             .wait()
 {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)