Dear visitor, welcome to Palo Community Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
This post has been edited 1 times, last edit by "wudycool" (May 18th 2009, 10:46pm)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
<?xml version ="1.0" encoding= "UTF-8"?>
<project name= "importolap" version="1.5">
<comment>
Palo etl:test
</comment>
<connections>
<connection name="palodemo" type="palo">
<comment> paloquelldatenbank</comment>
<host>localhost</host>
<port>7777</port>
<user>admin</user>
<password>admin</password>
<database>Datenbank1</database>
</connection>
</connections>
<sources>
<source name="Qubequelle" type="OLAPCube">
<connection nameref="palodemo" />
<query>
<cube name="Qube1" />
<dimensions>
<dimension name="a1" leafs="restrict">
</dimension>
<dimension name="a2" leafs="restrict">
</dimension>
<dimension name="a3" leafs="restrict">
</dimension>
<dimension name="a4" leafs="restrict">
</dimension>
<dimension name="a5" leafs="root">
</dimension>
<dimension name ="a6" leafs="restrict">
<accept value="Element1" />
</dimension>
</dimensions>
</query>
</source>
<source name="sourceb1" type="OLAPDimension">
<connection nameref="palodemo" />
<query>
<dimension name="b1" leafs="restrict">
</dimension>
</query>
</source>
</sources>
<pipelines>
<pipeline name="erg" type="Table">
<sources>
<source nameref="Qubequelle" />
<source nameref="sourceb1" />
</sources>
<target>
<coordinates>
<coordinate name="a1">
<input nameref="a1" />
</coordinate>
<coordinate name="a2">
<input nameref="a2" />
</coordinate>
<coordinate name="a3">
<input nameref="a3" />
</coordinate>
<coordinate name="a4">
<input nameref="a4" />
</coordinate>
<coordinate name="b1">
<input nameref="b1" />
</coordinate>
</coordinates>
</target>
</pipeline>
</pipelines>
<exports>
<export name="targetqube" type="Cube" mode="create">
<connection nameref="palodemo" />
<source nameref="erg" />
</export>
</exports>
<jobs>
<job name="Cube_ziel">
<export nameref="targetqube" />
</job>
</jobs>
</project>
|
This post has been edited 1 times, last edit by "wudycool" (May 20th 2009, 6:30pm)
but maybe this workaround help u guys to understand what i wont to do.|
|
Source code |
1 2 3 4 5 |
okay i use the normel palo importer with the cube_a. it goes through all cell in the first row and i use the "palo.setdata"-function like this: paloimport raw:dim1a|dim2a|dim3a|dim4a|dim5a(root)|dim6a(element1)|value Palo.setdata=PALO.SETDATA(VALUE;WAHR;"databank";Cube_b;dim1a;dim2a;dim3a;dim4a;"dim1b.element_X";) |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
<?xml version ="1.0" encoding= "UTF-8"?>
<project name= "test" version="1.1">
<comment>
Palo etl: rudimenterer test mit einer test db und 3 dimensionen in einen cube mit 2 dims umwandeln
</comment>
<connections>
<connection name="umwandlertest" type="palo">
<comment> localtest db </comment>
<host>localhost</host>
<port>7777</port>
<user>admin</user>
<password>admin</password>
<database>localtest</database>
</connection>
</connections>
<sources>
<source name="Qubequelle" type="OLAPCube">
<connection nameref="umwandlertest" />
<query>
<cube name="test" />
<dimensions>
<dimension name="dim1" leafs="restrict">
<accept value="Alle" />
</dimension>
<dimension name="dim2" >
</dimension>
<dimension name="dim2" >
</dimension>
</dimensions>
</query>
</source>
</sources>
<pipelines>
<pipeline name="erg" type="Table">
<sources>
<source nameref="Qubequelle" />
</sources>
<target>
<coordinates>
<coordinate>
<input nameref="dim1" />
</coordinate>
<coordinate>
<input nameref="dim2" />
</coordinate>
</coordinates>
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
</target>
</pipeline>
</pipelines>
<exports>
<export name="test2" type="Cube" mode="create">
<connection nameref="umwandlertest" />
<source nameref="erg" />
</export>
</exports>
<jobs>
<job name="Cube_ziel">
<export nameref="test2" />
</job>
</jobs>
</project>
|
This post has been edited 1 times, last edit by "wudycool" (Jun 2nd 2009, 8:12pm)