This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Credit to http://community.qlikview.com/blogs/qlikviewdesignblog/2013/11/18/dollar-expansions | |
// define variable which will pull/contatenate all members of dimension to disregard | |
Set vClearCalendar = "='[' & Concat({1<$Table={'Calendar'}>} $Field, ']=,[') & ']=' "; | |
// if you want to exclude some, for example Year: | |
Set vClearCalendar = "='[' & Concat({1<$Table={'Calendar'}, $Field-={'Year'}>} $Field, ']=,[') & ']=' "; | |
//this is how set expression will look like | |
// Sum ({$<$(vClearCalendar)>} Amount) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dimension Expression (Primary and Secondary) | |
------------------------------------------------ | |
= $(='['&only(%TrendDimensionName)&']') | |
= $(='['&only(%TrendDimensionNameSecondary)&']') | |
Dimension Label | |
------------------------------------------------ | |
=%TrendDimensionName | |
Metric Expression |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////// | |
// For Script Task (control flow) | |
/////////////////////////////////////// | |
bool fireAgain = true; Dts.Events.FireInformation(1,"YOUR TITLE",myVar.ToString(),"",0, ref fireAgain); //debug message | |
Dts.Events.FireError(0, "Error!", "Your custom Error message", String.Empty, 0); //raise custom error | |
/////////////////////////////////////// | |
//For Script Component (data flow) | |
/////////////////////////////////////// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.kudu.ColumnSchema | |
import org.apache.kudu.Schema | |
import org.apache.kudu.Type | |
import org.apache.kudu.client.AlterTableOptions | |
import org.apache.kudu.client.CreateTableOptions | |
import org.apache.kudu.client.Insert | |
import org.apache.kudu.client.KuduClient | |
import org.apache.kudu.client.KuduException | |
import org.apache.kudu.client.KuduPredicate | |
import org.apache.kudu.client.KuduPredicate.ComparisonOp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
impala-shell -d mydbname -q 'show tables' -B | xargs -I '{}' impala-shell -d mydbname -q 'DROP TABLE IF EXISTS `{}`;' |