Does anyone know why, on GeoKettle, the 'Shapefile File Input Step' is not generating the row number?
How can I do a around? With the 'Add Sequence' step?
This is all happening on a transformation.
Tks
After some amount of digging on the inners of this, what I came out with was that this is simply a bug on the implementation of the step "Shapefile File Input". I did not find this on other inputs that generate the same row number...
The GeoKettle version is 2.5 as of this answer and in turns is based on Pentaho Kettle version 3.2...
Related
Struggling to find rank values from highest to lowest, please see attached example of what I'm trying to achieve.
My current custom expression is:
Sum([ViolationAmt])
I have tried this:
Sum([ViolationAmt]) over Rank([ViolationAmt])
I've played around with the rank expressions however unable to implement...would be very grateful for some help.
Spotfire Rank Example
I need to make a lot of assumptions here because I don't know anything about your data set or really what your end goal is, so please comment back and/or provide more info in your question if I am off base.
the first assumption is that each row in your dataset represents one, for simplicity, [AccountID] with a [ViolationAmt]. I'm also guessing you want to show the top N accounts with the highest violations in a table, since that's what you've shown here.
so it sounds like you are going to need two calculated columns: one for getting the total [ViolationAmt] per account, and then another to rank them.
for the first, create a column called [TotalViolationAmt] or somesuch and use:
Sum([ViolationAmt]) OVER ([AccountID])
for the second:
Rank([TotalViolationAmt])
it will be useful to read the documentation on ranking functions if you haven't already.
you could probably combine these two into a single column with something like:
Rank(Sum([ViolationAmt]) OVER ([AccountID]))
but I haven't tested this at all. again, if you put in a bit more detail about what you're trying to accomplish it will help you get a better, more detailed answer :)
I am using nifi 1.1.1 package. I applied the patch files in the source code by referring the below link due to issue faced "Destination cannot be within sources" while split flowfile when make header count greater than 0.
https://issues.apache.org/jira/browse/NIFI-3255.
After apply patches, split text processor works fine, if the header line count given as 0 and above 1.
Those changes in Split text processor can works if we have lesser number of rows only. For example: if flowfile contains 1000 rows it could be split.
If the input file contains more than 20000 rows then it doesn't splits the data and leads `"ArrayIndexOutOfBoundsException" exception.
Here i attached image in which faced.
Anyone please guide me way to resolve that issue.
https://i.stack.imgur.com/UNKI0.png
After some digging it seems that you have run into a problem in the 1.1 version of Nifi.
As discussed here, upgrading to Nifi 1.2 or above should resolve the issue.
I have the following problem to solve:
There is a flat file to read, but the information is unfortunately spread over two rows. So i need to merge these two rows.
I thought about creating an incomplete object first and then add the information from the next row. Then move to the next couple. But i don't really see how to manage that.
Is there a way to read two lines and then process, or to remember an object from one to another step. I'm quite confused.
Any hint would be appreciated. Thanks.
This is a perfect use case for using a SingleItemPeekableItemReader. Check out this older answer for an example.
I would like to create a new "International Text Input Source" along the lines of the built-in Japanese input source where you can type in roman letters and get a drop-down of choices to choose from. However, I have no idea where to start work on such a thing. Is it feasible, or would it be a complete hack?
All I've found so far is the Text Input Source Services which seems to be all about dealing with existing input sources.
Any pointers on where to begin would be highly appreciated, thanks.
Sounds like what you are really looking for is documentation the Input Method Kit (which was introduced with Leopard).
Here's Apple's release note and a reference guide.
The reason I thought of this answer was because I had worked with Apple's Number Input sample code a year or two ago.
I posted this one a couple of months ago on the Mathematica newsgroup, but got no usable response. I thought I'd give SO a try.
The question was: I don't seem to be able to find the method to generate the table of contents of a
Mathematica document I'm working on. Anyone knows this feauture's
hideout?
David Annetts pointed me in the direction of the AuthorTools, an old v5.1
utility package that's still hidden in Mathematica. However, it
doesn't work on my document (v7). Any clue?
Edit
The TOC should contain correct section numbers (if present in the stylesheet) and list page numbers (this requires taking page size settings into account).
Perhaps looking at the code of Yuri Kandrashkin's package, Sidebar, will be useful?