[jira] [Created] (FLINK-35812) Move tuple interfaces to flink-core-api

2024-07-11 Thread Zakelly Lan (Jira)
Zakelly Lan created FLINK-35812: --- Summary: Move tuple interfaces to flink-core-api Key: FLINK-35812 URL: https://issues.apache.org/jira/browse/FLINK-35812 Project: Flink Issue Type

[jira] [Created] (FLINK-32292) TableUtils.getRowTypeInfo fails to get type information of Tuple

2023-06-08 Thread Zhipeng Zhang (Jira)
Zhipeng Zhang created FLINK-32292: - Summary: TableUtils.getRowTypeInfo fails to get type information of Tuple Key: FLINK-32292 URL: https://issues.apache.org/jira/browse/FLINK-32292 Project: Flink

[jira] [Created] (FLINK-26529) PyFlink 'tuple' object has no attribute '_values'

2022-03-07 Thread James Schulte (Jira)
James Schulte created FLINK-26529: - Summary: PyFlink 'tuple' object has no attribute '_values' Key: FLINK-26529 URL: https://issues.apache.org/jira/browse/FLINK-26529 Project: F

[jira] [Created] (FLINK-17420) Cannot alias Tuple and Row fields when converting DataStream to Table

2020-04-27 Thread Gyula Fora (Jira)
Gyula Fora created FLINK-17420: -- Summary: Cannot alias Tuple and Row fields when converting DataStream to Table Key: FLINK-17420 URL: https://issues.apache.org/jira/browse/FLINK-17420 Project: Flink

[jira] [Created] (FLINK-17074) Deprecate DataStream.keyBy() that use tuple/expression keys

2020-04-09 Thread Aljoscha Krettek (Jira)
Aljoscha Krettek created FLINK-17074: Summary: Deprecate DataStream.keyBy() that use tuple/expression keys Key: FLINK-17074 URL: https://issues.apache.org/jira/browse/FLINK-17074 Project: Flink

[jira] [Created] (FLINK-9435) Remove per-key selection Tuple instantiation via reflection in KeySelectorUtil#ComparableKeySelector

2018-05-24 Thread Nico Kruber (JIRA)
Nico Kruber created FLINK-9435: -- Summary: Remove per-key selection Tuple instantiation via reflection in KeySelectorUtil#ComparableKeySelector Key: FLINK-9435 URL: https://issues.apache.org/jira/browse/FLINK-9435

[jira] [Created] (FLINK-8386) Scala API cannot create type information for Tuple interface

2018-01-08 Thread Timo Walther (JIRA)
Timo Walther created FLINK-8386: --- Summary: Scala API cannot create type information for Tuple interface Key: FLINK-8386 URL: https://issues.apache.org/jira/browse/FLINK-8386 Project: Flink

[jira] [Created] (FLINK-6888) Can not determine TypeInformation of ACC type of AggregateFunction when ACC is a Scala case/tuple class

2017-06-11 Thread Jark Wu (JIRA)
Jark Wu created FLINK-6888: -- Summary: Can not determine TypeInformation of ACC type of AggregateFunction when ACC is a Scala case/tuple class Key: FLINK-6888 URL: https://issues.apache.org/jira/browse/FLINK-6888

[jira] [Created] (FLINK-6115) Need more helpful error message when trying to serialize a tuple with a null field

2017-03-18 Thread Luke Hutchison (JIRA)
Luke Hutchison created FLINK-6115: - Summary: Need more helpful error message when trying to serialize a tuple with a null field Key: FLINK-6115 URL: https://issues.apache.org/jira/browse/FLINK-6115

[jira] [Created] (FLINK-4795) CsvStringify crashes in case of tuple in tuple, t.e. ("a", True, (1,5))

2016-10-10 Thread Yakov Goldberg (JIRA)
Yakov Goldberg created FLINK-4795: - Summary: CsvStringify crashes in case of tuple in tuple, t.e. ("a", True, (1,5)) Key: FLINK-4795 URL: https://issues.apache.org/jira/browse/FLINK-4795

[jira] [Created] (FLINK-4734) Remove use of Tuple setField for fixed position

2016-10-04 Thread Greg Hogan (JIRA)
Greg Hogan created FLINK-4734: - Summary: Remove use of Tuple setField for fixed position Key: FLINK-4734 URL: https://issues.apache.org/jira/browse/FLINK-4734 Project: Flink Issue Type

[jira] [Created] (FLINK-4238) Only allow/require query for Tuple Stream in CassandraSink

2016-07-20 Thread Aljoscha Krettek (JIRA)
Aljoscha Krettek created FLINK-4238: --- Summary: Only allow/require query for Tuple Stream in CassandraSink Key: FLINK-4238 URL: https://issues.apache.org/jira/browse/FLINK-4238 Project: Flink

Re: Tuple performance and the curious JIT compiler

2016-03-10 Thread Márton Balassi
be expected from hand written > >> > > serializers. > >> > > > > > >> > > > > Best regards, > >> > > > > Gábor > >> > > > > > >> > > > > On 8 March 2016 at 10:47, Stephan Ewen > wrote: >

Re: Tuple performance and the curious JIT compiler

2016-03-10 Thread Ufuk Celebi
wrote: >> > > > > >> > > > > > Ah, very good, that makes sense! >> > > > > > >> > > > > > I would guess that this performance difference could probably be >> > seen >> > > > at >> > > > > > various points wher

Re: Tuple performance and the curious JIT compiler

2016-03-09 Thread Stephan Ewen
ance difference could probably be > > seen > > > > at > > > > > > various points where generic serializers and comparators are used > > > (also > > > > > for > > > > > > Comparable, Writable) or > > > > >

Re: Tuple performance and the curious JIT compiler

2016-03-09 Thread Gábor Horváth
. > > > > > > > > > > I guess creating more specialized serializers would solve some of > > these > > > > > problems, like in your IntValue vs LongValue case. > > > > > > > > > > The best way to solve that would probably be through code > g

Re: Tuple performance and the curious JIT compiler

2016-03-09 Thread Stephan Ewen
izer delegates to a sequence of other > > > TypeSerializers. > > > > > > > > I guess creating more specialized serializers would solve some of > these > > > > problems, like in your IntValue vs LongValue case. > > > > > > > > The best wa

Re: Tuple performance and the curious JIT compiler

2016-03-08 Thread Márton Balassi
se. > > > > > > The best way to solve that would probably be through code generation in > > the > > > serializers. That has actually been my wish for quite a while. > > > If you are also into these kinds of low-level performance topics, we > > could > &

Re: Tuple performance and the curious JIT compiler

2016-03-08 Thread Fabian Hueske
s. That has actually been my wish for quite a while. > > If you are also into these kinds of low-level performance topics, we > could > > start a discussion on that. > > > > Greetings, > > Stephan > > > > > > On Mon, Mar 7, 2016 at 11:25 PM, Greg

Re: Tuple performance and the curious JIT compiler

2016-03-08 Thread Gábor Horváth
n > > > On Mon, Mar 7, 2016 at 11:25 PM, Greg Hogan wrote: > > > The issue is not with the Tuple hierarchy (running Gelly examples had no > > effect on runtime, and as you note there aren't any subclass overrides) > but > > with CopyableValue. I had been

Re: Tuple performance and the curious JIT compiler

2016-03-08 Thread Stephan Ewen
performance topics, we could start a discussion on that. Greetings, Stephan On Mon, Mar 7, 2016 at 11:25 PM, Greg Hogan wrote: > The issue is not with the Tuple hierarchy (running Gelly examples had no > effect on runtime, and as you note there aren't any subclass overrides)

Re: Tuple performance and the curious JIT compiler

2016-03-07 Thread Greg Hogan
The issue is not with the Tuple hierarchy (running Gelly examples had no effect on runtime, and as you note there aren't any subclass overrides) but with CopyableValue. I had been using IntValue exclusively but had switched to using LongValue for graph generation. CopyableValueComparato

Re: Tuple performance and the curious JIT compiler

2016-03-07 Thread Stephan Ewen
Hi Greg! Sounds very interesting. Do you have a hunch what "virtual" Tuple methods are being used that become less jit-able? In many cases, tuples use only field accesses (like "vakle.f1") in the user functions. I have to dig into the serializers, to see if they could s

Tuple performance and the curious JIT compiler

2016-03-04 Thread Greg Hogan
execute a separate jar which executes essentially the same algorithm but using Gelly's Edge (which subclasses Tuple3 but does not add any extra fields) and now both the Tuple and Edge algorithms take twice as long. Has this been previously discussed? If not I can work up a demonstrat

[jira] [Created] (FLINK-3119) Remove dependency on Tuple from HadoopOutputFormat

2015-12-04 Thread Nick Dimiduk (JIRA)
Nick Dimiduk created FLINK-3119: --- Summary: Remove dependency on Tuple from HadoopOutputFormat Key: FLINK-3119 URL: https://issues.apache.org/jira/browse/FLINK-3119 Project: Flink Issue Type

[jira] [Created] (FLINK-2721) Add Tuple meta information

2015-09-21 Thread Matthias J. Sax (JIRA)
Matthias J. Sax created FLINK-2721: -- Summary: Add Tuple meta information Key: FLINK-2721 URL: https://issues.apache.org/jira/browse/FLINK-2721 Project: Flink Issue Type: New Feature

Re: Tuple

2015-08-04 Thread Matthias J. Sax
t;> creates an infinite number of tuples and then counts them, right? >>>> >>>> The problem with serialization as i understand it is that the receiver >>>> can't tell how many Tuple0 are sent, since you never actually read any >>>> data

Re: Tuple

2015-08-04 Thread Chesnay Schepler
nd it is that the receiver can't tell how many Tuple0 are sent, since you never actually read any data when deserializing a tuple. it's even more likely that it's not even attempted. As such, I'd be curious to see what happens when you create a batch job that with a limited numbe

Re: Tuple

2015-08-04 Thread Matthias J. Sax
Tuple0 are sent, since you never actually read any >> data when deserializing a tuple. it's even more likely that it's not >> even attempted. >> >> As such, I'd be curious to see what happens when you create a batch job >> that with a limited number of st

Re: Tuple

2015-08-04 Thread Matthias J. Sax
nite number of tuples and then counts them, right? > > The problem with serialization as i understand it is that the receiver > can't tell how many Tuple0 are sent, since you never actually read any > data when deserializing a tuple. it's even more likely that it's not

Re: Tuple

2015-08-04 Thread Matthias J. Sax
nite number of tuples and then counts them, right? > > The problem with serialization as i understand it is that the receiver > can't tell how many Tuple0 are sent, since you never actually read any > data when deserializing a tuple. it's even more likely that it's not

Re: Tuple

2015-08-04 Thread Matthias J. Sax
nite number of tuples and then counts them, right? > > The problem with serialization as i understand it is that the receiver > can't tell how many Tuple0 are sent, since you never actually read any > data when deserializing a tuple. it's even more likely that it's not

Re: Tuple

2015-08-04 Thread Aljoscha Krettek
sent, since you never actually read any > data when deserializing a tuple. it's even more likely that it's not > even attempted. > > As such, I'd be curious to see what happens when you create a batch job > that with a limited number of starting tuples. > > On 04.0

Re: Tuple

2015-08-04 Thread Chesnay Schepler
data when deserializing a tuple. it's even more likely that it's not even attempted. As such, I'd be curious to see what happens when you create a batch job that with a limited number of starting tuples. On 04.08.2015 13:08, Matthias J. Sax wrote: Hi, I just opened a PR for

Re: Tuple

2015-08-04 Thread Matthias J. Sax
Sax wrote: > Thanks for the advice about Tuple0. > > I personally don't see any advantage in having "flink-tuple" project. Do > I miss anything about it? Furthermore, I am not sure if it is a good > idea the have too many too small projects. > > > On 08/03/2015 1

Re: Tuple

2015-08-02 Thread Stephan Ewen
e> wrote: > Thanks for the advice about Tuple0. > > I personally don't see any advantage in having "flink-tuple" project. Do > I miss anything about it? Furthermore, I am not sure if it is a good > idea the have too many too small projects. > > > On 08/03/2015 1

Re: Tuple

2015-08-02 Thread Matthias J. Sax
Thanks for the advice about Tuple0. I personally don't see any advantage in having "flink-tuple" project. Do I miss anything about it? Furthermore, I am not sure if it is a good idea the have too many too small projects. On 08/03/2015 12:48 AM, Stephan Ewen wrote: > Tuple0

Re: Tuple

2015-08-02 Thread Stephan Ewen
Tuple0 would need special serialization and comparator logic. If that is given, I see no reason not to support it. There is BTW, the request to create a dedicated "flink-tuple" project, that only contains the tuple classes. Any opinions on that? On Mon, Aug 3, 2015 at 12:45 AM, Matth

Re: Tuple

2015-08-02 Thread Matthias J. Sax
lly good idea to start a discussion about this. > > So the general idea behind Tuple0 was this: > > The Python API maps python tuples to flink tuples. Python can have empty > tuples, so i thought "well duh, let's make a Tuple0 class!". What i did > not wanna d

Re: Tuple

2015-08-02 Thread Chesnay Schepler
is create some non-Tuple object to represent empty tuples, I'd rather have them treated the same, because it's less work and creates simpler code. When transferring the plan to java, certain parameters for operations are tuples, which can be empty aswell. This is where the Tuple0 class

Re: Tuple

2015-08-02 Thread Matthias J. Sax
, Stephan Ewen wrote: > I think a Tuple0 cannot be implemented like the current tuples, at least > with respect to runtime serialization. > > The system makes the assumption that it makes progress in consuming bytes > when deserializing values. If a Tuple= never consumes data from the byte

Re: Tuple

2015-08-01 Thread Stephan Ewen
I think a Tuple0 cannot be implemented like the current tuples, at least with respect to runtime serialization. The system makes the assumption that it makes progress in consuming bytes when deserializing values. If a Tuple= never consumes data from the byte stream, this assumption is broken. It

Re: Tuple

2015-08-01 Thread Matthias J. Sax
I just double checked. Scala does not have type Tuple0. IMHO, it would be best to remove Tuple0 for consistency. Having Tuple types is for consistency reason with Scala in the first place, right? Please give feedback. -Matthias On 08/01/2015 01:04 PM, Matthias J. Sax wrote: > I see. >

Re: Tuple

2015-08-01 Thread Chesnay Schepler
yes, if it is present in the core flink files it must work just as any tuple in flink. removing is not an option though; but moving is. The Python API uses it (that's the reason Tuple0 was added in the first place). On 01.08.2015 13:04, Matthias J. Sax wrote: I see. I think that it

Re: Tuple

2015-08-01 Thread Matthias J. Sax
t;> there's no specific reason. it was added fairly recently by me (mid of >> april), and you're most likely the second person to use it. >> >> i didn't integrate into all our tuple related stuff because, well, i >> never thought anyone would actually ne

Re: Tuple

2015-07-31 Thread Chesnay Schepler
it. i didn't integrate into all our tuple related stuff because, well, i never thought anyone would actually need it, so i saved myself the trouble. Hi, is there any specific reason, why Tuple.getTupleClass(int arity) does not support arity zero? There is a class Tuple0, but it ca

Re: Tuple

2015-07-31 Thread Chesnay Schepler
there's no specific reason. it was added fairly recently by me (mid of april), and you're most likely the second person to use it. i didn't integrate into all our tuple related stuff because, well, i never thought anyone would actually need it, so i saved myself the trouble.

Tuple

2015-07-31 Thread Matthias J. Sax
Hi, is there any specific reason, why Tuple.getTupleClass(int arity) does not support arity zero? There is a class Tuple0, but it cannot be generator by Tuple.getTupleClass(...). Is it a missing feature (I would like to have it). -Matthias signature.asc Description: OpenPGP digital signature

[jira] [Created] (FLINK-2447) TypeExtractor returns wrong type info when a Tuple has two fields of the same POJO type

2015-07-31 Thread Gabor Gevay (JIRA)
Gabor Gevay created FLINK-2447: -- Summary: TypeExtractor returns wrong type info when a Tuple has two fields of the same POJO type Key: FLINK-2447 URL: https://issues.apache.org/jira/browse/FLINK-2447

[jira] [Created] (FLINK-2202) Calling distinct() requires tuple input

2015-06-10 Thread Theodore Vasiloudis (JIRA)
Theodore Vasiloudis created FLINK-2202: -- Summary: Calling distinct() requires tuple input Key: FLINK-2202 URL: https://issues.apache.org/jira/browse/FLINK-2202 Project: Flink Issue Type

Re: Scala Tuple2 not recognized as a Scala Tuple

2015-06-01 Thread Aljoscha Krettek
I try to write as > CSV, I get an exception: > > java.lang.IllegalArgumentException: requirement failed: CSV output can > only be used with Tuple DataSets. > > It seems that an instance of _DataSet[scala.Tuple2[Long, Long]]_ is > somehow considered different from an instance of_ DataSet[(Long, > Lon

Re: Scala Tuple2 not recognized as a Scala Tuple

2015-06-01 Thread Pieter-Jan Van Aeken
the method available in _org.apache.flink.api.scala.package. _This works fine when I print out the result, but when I try to write as CSV, I get an exception: java.lang.IllegalArgumentException: requirement failed: CSV output can only be used with Tuple DataSets. It seems that an instance of _Data

Scala Tuple2 not recognized as a Scala Tuple

2015-06-01 Thread Pieter-Jan Van Aeken
put can only be used with Tuple DataSets. It seems that an instance of _DataSet[scala.Tuple2[Long, Long]]_ is somehow considered different from an instance of_ DataSet[(Long, Long)]_ Are there any suggestions on how to fix this problem? Note that I cannot hardcode the conversion as the tuple size

Re: Adding custom Tuple to a DataSet

2015-05-28 Thread Amit Pawar
7;), > but you can use other classes. Create your own tuple POJO with subclasses, > and it should work. > > Stephan > > > On Thu, May 28, 2015 at 1:30 AM, Amit Pawar > wrote: > > > Hi > > > > Is there a way, where I can add a custom (newly created) Tupl

Re: Adding custom Tuple to a DataSet

2015-05-28 Thread Stephan Ewen
Hi! If you want to have type hierarchies (like base tuples and different classes), you cannot use tuples (they are expected to be 'exact schema'), but you can use other classes. Create your own tuple POJO with subclasses, and it should work. Stephan On Thu, May 28, 2015 at 1:30 AM,

Adding custom Tuple to a DataSet

2015-05-27 Thread Amit Pawar
Hi Is there a way, where I can add a custom (newly created) Tuple to a new DataSet or already existing DataSet? DataSet set = env.fromElements (myCustomTuple); works fine, but only with same datatype in case of Tuple2 or higher. Tuple2 creates a problem (as stated in JavaDoc it needs all

Re: Tuple project method

2015-05-27 Thread Stephan Ewen
It would be an interesting addition. Such a method cannot be done fully type safe in Java, but that might be okay, since it is user-code internal. On Wed, May 27, 2015 at 11:52 AM, Flavio Pompermaier wrote: > Sorry, to be effective the project should also take in input the target >

Re: Tuple project method

2015-05-27 Thread Flavio Pompermaier
Sorry, to be effective the project should also take in input the target tuple itself :) Tuple3 reuse = tuple.project(reuse, 0,2,5)? On Wed, May 27, 2015 at 11:51 AM, Flavio Pompermaier wrote: > Hi flinkers, > > it happens very often to me that I have to output a reuse tuple that >

Tuple project method

2015-05-27 Thread Flavio Pompermaier
Hi flinkers, it happens very often to me that I have to output a reuse tuple that basically is a subset of the data contained of the input tuple..do you think it could be useful to add a project method to Tuple class? So that to be able to write something like: Tuple3 reuse = tuple.project

[jira] [Created] (FLINK-1919) Add HCatOutputFormat for Tuple data types

2015-04-21 Thread Fabian Hueske (JIRA)
Fabian Hueske created FLINK-1919: Summary: Add HCatOutputFormat for Tuple data types Key: FLINK-1919 URL: https://issues.apache.org/jira/browse/FLINK-1919 Project: Flink Issue Type: New

[jira] [Created] (FLINK-1906) Add tip to work around plain Tuple return type of project operator

2015-04-17 Thread Fabian Hueske (JIRA)
Fabian Hueske created FLINK-1906: Summary: Add tip to work around plain Tuple return type of project operator Key: FLINK-1906 URL: https://issues.apache.org/jira/browse/FLINK-1906 Project: Flink

[jira] [Created] (FLINK-1490) Incorrect local output sort for tuple position keys with nested tuples

2015-02-06 Thread Fabian Hueske (JIRA)
Fabian Hueske created FLINK-1490: Summary: Incorrect local output sort for tuple position keys with nested tuples Key: FLINK-1490 URL: https://issues.apache.org/jira/browse/FLINK-1490 Project: Flink