* coming in place of keys when connecting saiku with mongo using apache drill - mongodb

I am using Apache drill in embedded mode and when I am able to connect to mongo and query in drill successfully.
However when I create a schema in saiku schema designer using driver as "org.apache.drill.jdbc.Driver" and URL as "jdbc:drill:drillbit=hostname:31010" the connection is successful and all collections are also fetched and shown as tables in saiku, but in place of column names "*" is coming and actual column names are not coming.
Dont know what I am missing on.

I figured out the solution and posting in case anyone could benefit. I had created a view in drill with select * from table. When I created view as select col1,col2... from table the issue got resolved.

Related

Azure Postgres & Query Performance Insight: Query text not showing

I have enabled Query Performance Insights, however, the Query Text fields are left empty, as you can see from the screenshot below.
I have enabled the Query Store as described in the documentation, everything else has been left to its default values.
pg_qs.query_capture_mode is set to TOP
pgms_wait_sampling.query_capture_mode is set to ALL
If I query the query_store.qs_view or pgms_wait_sampling_view data is returned.
SELECT * FROM query_store.qs_view;
SELECT * FROM query_store.pgms_wait_sampling_view;
Also the column qs_view.query_sql_text contains SQL statements, as well as the query_texts_view. Any idea why its not showing up in the UI?
In the portal page of your Azure Database for PostgreSQL server, select Query performance Insight under the Intelligent Performance section of the menu bar. Query Text is no longer supported is shown. However, the query text can still be viewed by connecting to azure_sys and querying 'query_store.query_texts_view'.
https://learn.microsoft.com/en-us/azure/postgresql/concepts-query-performance-insight

Talend Open Studio : creating table in MySQL dynamically

I am trying to find out how to do dynamic creation of tables in MySQL using Talend.
In other ETL tools such as Pentaho they have a specific component called "metadata" to do this.
So my use case is the following:
1) Create database manually in MySQL
2) Use Talend to read CSV Header info, and use this as the fields of a table to be created in MySQL using Talend.
I have searched and could not find anything for this specific feature online.
[Note : using Talend Open Studio for Big Data Version: 6.4.1]
UPDATE:
I have made progress on this, but running into issues trying to generate a primary key on the MySQL output using the NumericSequence function.
My data does not have natively a primary key, but wish to include one:
I have a screenshot of the tMap attached here:
Also I am getting a compile/build error. It seems it does not like the primary key generation it seems.
See attached image.
And here also is the tMySQLOutput settings for Primary Key:
More Work Done:
I have changed the name of the Primary Key in the tMySQL component to match the name of the tMap output area component, i get the same compile error.
I will attach this error here:
To create dynamically MySQL tables in Talend, you can use one of the "Action on table" options in tMysqlOutput components (in your case, "Create table...").
https://help.talend.com/reader/4I8tDQGtrOPDl5MXAS3Q~w/aDNKleHXlevILu9pnbCoNg
Don't forget to define correctly PK fields for further inserts, updates, deletes...
Then, if necessary, through your favorite Database Tool (MySQL Workbench, DBeaver or other), you can retrieve the DDL (and DML) script(s).
I hope this answers to your problem/question.

MySQL Workbench: How to show the columns of view table?

The table with blue header is normal mysql table, while the one with yellow header is view table. I used reversed engineering to import these tables into mysql workbench and trying to place relationship among them using existing columns, but I can't expand and see the columns of view table.
It is the limitation of mysql workbench, or actually it is possible to expand the view table? If it is able to expand, can someone please guide me on this?
Thanks!!
This is currently a limitatiion and, to my surprise, not something that people requested in the past. If you like you can open a feature request at http://bugs.mysql.com to get this implemented.

Using Select query, nothing merges onto Crystal report

I have a Crystal template that I am modifying in developer because we are changing the datasource from an Access file to our Oracle DB. I created a database field that accurately connects to Oracle and added a select statement that because pulls a field from a particular table
select s.field from table s;
On the right hand side, under database fields, I see my command and can right click and browse the data, which right now returns two values.
I also made a formula field using an Azalea barcode function that calls the values (I think, this is where stuff is going wrong, I guess)
The formula field is
BarcodeC39ASCII({Command.field})
So this should take the data and format it into the barcode, except when I use print preview or print out the report, no data is merged.
I've tested this by creating a new formula field with just the Command.field, and still no data is merged. I imagine there is something really obvious that I am missing and would appreciate any input.
So unless I misunderstood your question, you are changing your datasource from Access DB to Oracle DB, correct? Assuming that the database structure remains the same then all you should need to do is go into Database -> Set Datasource Location and set the datasource location from the Access DB to the Oracle DB and your existing report should work as it did. You might have to map some fields, but that should be the extend of it. Is that what you are trying to do?
Chris

Some questions of using HSQL to presentation data in Jasper

friends, I am using with jasper to present a sample report names AddressesReport, by the tutorial I can see various format report after running ant, but I want to know how the data in "AddressesReport" is fetched from HSQLDB to the report template. Detailed things like
Is there any Store Procedure for batch-fetching from HSQLDB table address ?
then, how these fetched field stored in jasper template named *.jrxml?
HSQLDB has Sqltool due to the document, but how can I running scripting like "select * from address" in HSQLDBMS? Can somebody give a help? thanks first.
This example shows how to connect to an existing HSQLDB database to create reports:
http://www.uptick.com.au/content/working-hsqldb-jasperreports-and-ireport