Questions tagged [teiid]
Teiid is a data virtualization system by JBoss that allows applications to use data from multiple, heterogenous data stores.
156
questions
0
votes
0
answers
26
views
TEIID Spring boot integration with two sql server. QueryParserException
I am getting below error when trying to fetch data from two different mssql servers:
TEIID31100 Parsing error: Encountered "SELECT id, [*]parameter[*],
value" at line 9, column 12. Was ...
0
votes
0
answers
6
views
insert a large amount of data into RDB tables in Teiid
does someone know how to use SQL sentence, like "insert into table values (...) select ... " in teiid to insert large-scale data into relations/tables of RDBs as effect as jdbc batch?
-Zhen
...
0
votes
0
answers
25
views
Saving file in Teiid VDB
I'm accessing a Teiid VDB and doing some queries, but I don't know how to generate a file with the contents of a single variable defined in a PL script:
BEGIN
DECLARE string csvLine = '';
DECLARE ...
0
votes
0
answers
29
views
How use Hibernate Envers with Teiid
I have a problem with the integration of hibernate envers on a application that use Teiid. This one doesn't support ddl like 'create table TABLE_NAME_AUD' or sequence generation.
I tried to split ...
-1
votes
1
answer
45
views
Teiid Dialect for Hibernate 6
I'm using Teiid since 2010 in many projects with Hibernate 5.x and now I'm planning to migrate to Hibernate 6.
Do anyone know if current teiid dialect works with Hibernate 6 or if someone is ...
0
votes
1
answer
57
views
Conversion Error in TEIID during function call
I have following function defined in a java jar file within the vdb folder:
public static Blob createSampleLogCurve(String indexType, String indexUnit, String curveName, String curveUnit, String ...
0
votes
1
answer
43
views
Deploying Solr Translator in Jboss
I am trying to use the embedded JCA connector to connect to a Solr Source to be able to then deploy that as native VDB in TEIID to query SOLR using SQL. Below is the translator and resource adapter ...
0
votes
1
answer
61
views
Convert the timestamp in accessing VDB (TEIID)
I am new to TEIID and VDB. As per my need, I need to extract the VDB data using Postgres SQL by validating the converted timestamp.
Issue is
Here is the sample query that I am trying to execute.
...
0
votes
0
answers
127
views
NO LOCK Hint for SQL Server Connection in Jboss/TEIID
How can one pass no lock hint option in Jboss connection settings. Is passing the TRANSACTION_READ_UNCOMMITTED flag correct? Even though I have this flag in connection setting, I still see a ...
0
votes
1
answer
258
views
I am unable to run HIVE functions in my DBeaver tool
I am trying to run some hive functinos in Dbeaver tool but it always giving the below error
What I am trying to run is for example :
SELECT from_unixtime(unix_timestamp('17-Sep-21', 'dd-MMM-yy'),'dd-...
0
votes
1
answer
66
views
TEIID Function not returning Value
I have created following simple function to return a count value but its not returning when executing from SQL:
CREATE VIRTUAL FUNCTION GET_COUNT (IN value string)
RETURNS integer AS
BEGIN
...
1
vote
0
answers
65
views
Multi-tenancy using Teiid Spring Boot
I am working on a Teiid Spring Boot application and would like to implement Multi-tenant architecture. Teiid Spring Boot is able to connect to two different datasources DS1 and DS2 but as Teiid vdb ...
0
votes
1
answer
3k
views
Wildfly Idle/Hung connection timeout
I have a connection defined in standalone.xml to be able to release a connection upon idle timeout. I have noticed sometimes the connection is not releasing from SQL server DB even after the query has ...
0
votes
1
answer
68
views
Calling Python Function as UDF from TEIID
If I have series of functions in python that I want to call from TEIID VDB as UDF. Is that possible without having to convert it to native Java based code ? Can this be done using Jython ?
0
votes
1
answer
117
views
How to access only virtual views and hide physical tables with a standalone-vdb.xml wildfly/Teiid domain
We are using standalone-vdb.xml domain to create a vdb and then make it accessible through Jupiter for other users.
Now based on the xml file below as an example, we created the VIEW "...
0
votes
1
answer
139
views
Cannot invoke "org.teiid.spring.common.ExternalSource.getTranslatorName()" because "es" is null
I am trying out this starter for the first time using this example : rdbms
But i am getting the below exception:
Cannot invoke "org.teiid.spring.common.ExternalSource.getTranslatorName()" ...
1
vote
1
answer
482
views
How to configure a ODBC connection to teiid on rhel8? GSSAPI negotiation fails
I have a default Teiid 12.2 installation on RHEL 8.
Now I'm trying to configure an ODBC connection that would be used by PHP.
This always results in an error "[unixODBC]received invalid response ...
0
votes
1
answer
71
views
Accessing Parquet files form Teiid
Can Teiid be used to access parquet files stored in external directory (out side the web container) in Wildfly web application? Appreciate any help on this
0
votes
0
answers
654
views
Implicit conversion of UUID to character varying when using TEIID with postgres
I have a VDB containing a view with a UUID column with this definition
<vdb name="_GENERATED_users_info" version="6">
<import-vdb name="_INTERNAL_internal" ...
0
votes
1
answer
96
views
Combine two Java Objects in TEIID
I have a UDF that returns two java objects with double values:
object1 = {1.0,1.5,2.0,2.5}
object2 = {5.0,6.0,7.0,8.0}
I would like to combine/merge them in following way returning a double array:
...
0
votes
1
answer
74
views
OData changeset transaction with Teiid
I am trying to insert data into a SQL server datbase by using an Odata batch request changeset with Teiid. Surprisingly the inserts doesn't seem to be atomic. I am using Teeid 13.0.2 and mssql-jdbc-7....
1
vote
1
answer
51
views
Unaccent() function alternative in TEIID
We have a need for accent ignoring search in our application for Europian audience.
Does TEIID offer an alternative to the function mentioned here?
TEIID doesn't recognize this function:
TEIID30068 ...
1
vote
1
answer
139
views
Using default values in TEIID throws TeiidSQLException
I'm getting following error:
Caused by: org.teiid.jdbc.TeiidSQLException: TEIID31100 Parsing error: Encountered "insert into \"form\".\"form_insertdefault_1\" [*]default[*] ...
0
votes
1
answer
25
views
Teiid-wildfly Odata4 Server side validation
Please let me know if we can configure server side validation logic in vdb.xml file to validate the user input before insert values into database using teiid wildfly odata4 service.
Thanks.
0
votes
1
answer
72
views
Teiid Springboot Starter Collation or Locale
Where can I set the locale for translators and what is the accepted format.
E.g. I have seen instances where the locale is set as nl_NL, nl-NL. I want to force the locale of Teiid Springboot to be UTF-...
0
votes
2
answers
115
views
Error building Source for context item. org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 57; Content is not allowed in prolog
I am trying parse XML from invokeHTTP method that is returned in utf-16 encoding specified in the response.
I have tried below but I am still cannot get past this error
select request.* from (EXEC ...
0
votes
1
answer
72
views
Teiid wildlfy - Table column encrypt/decrypt
I am using teiid-wildfly server odata4 services to perform CRUD operations. I need to store some of the table fields in encrypted format. Could be possible for configure teiid security functions(...
2
votes
1
answer
927
views
Wildfly + SQL Server connections closing randomly and not recovering
I'm getting random "connection is closed" in Teiid 13.1.0 to SQL Server:
2021-01-08 10:20:23,949 DEBUG [org.teiid.COMMAND_LOG.SOURCE] (Worker513_QueryProcessorQueue9800) Cz9nti5G/vUr ERROR ...
0
votes
1
answer
72
views
Teiid User Defined Java Functions not visible
I am using teiid-wildfly servers. I followed the user defined functions example provided in teiid documentation. Below is my vdb file. Please let me know if I need to import any additional ...
0
votes
1
answer
34
views
How to set max-source-rows-allowed Teiid Springboot
While scouting the documentation we found the following properties that we want to set.
max-source-rows-allowed
exception-on-max-source-rows
Found on the following page:
https://teiid.github.io/...
0
votes
1
answer
52
views
Teiid 2-way SSL- connection successful even without the Truststore
I have a teiid embedded server and I am trying to connect to a vds on that server through 2-way SSL from my remote client by passing the teiid SSL properties in SystemProperties as per the teiid ...
0
votes
1
answer
86
views
Removing Invalid Characters from JSON response in TEIID
I have a json response generated from invokeHTTP function and then passing it to materialized view. Apparently there is control character embedded in the response. When converting to XMLTABLE I get ...
0
votes
1
answer
58
views
Teiid Client side SSL settings in System properties not working as expected
I have a teiid embedded server and I am trying to connect to a vds on that server through SSL from my remote client by passing the teiid SSL properties in SystemProperties as per the teiid ...
0
votes
1
answer
110
views
Passing Comma Separated List to Function with VARIDIAC parameter as input
I have a user defined function that takes a VARIADIC parameter as an input:
func(name string, VARIADIC values double) returns Blob
Example: select func('abc', 35.2,35.3,35.5)
How can I pass row ...
1
vote
1
answer
59
views
Teiid - Changing behavior of User Defined Functions after created
I'm with difficult to work with User-Defined Functions in Teiid. The issue is about changing the behavior of the functions and reply to Teiid.
It did this function in PostgreSQL.
create or replace ...
0
votes
1
answer
62
views
Teiid 15 - Query planner seems to incorrectly optimize the query with inner joins
We have a custom translator written that extends the SQLServerExecutionFactory, since Teiid 9.1. We have overridden the following translator capabilities to avoid push down of these cases.
...
0
votes
2
answers
126
views
Teiid not performing optimal join
For our Teiid Springboot project we use a row filter in a where clause to determine what results a user gets.
Example:
SELECT * FROM very_large_table WHERE id IN ('01', '03')
We want the context in ...
0
votes
1
answer
64
views
Executing select with sub queries return null pointer exception in Teiid 12.x
We just upgraded Teiid from 9.1 to Teiid 12.0.2. In Teiid 9.1 we used to run select queries with lierals and subqueries like
insert into tableA(organization,empname,dept) values('ORG-X',(select ...
0
votes
1
answer
39
views
Teiid Springboot security context in DDL
In our Teiid Springboot project we have Spring Security enabled which has roles in it. E.g. GrantedAuthorities.
How can use/read those roles into a DDL VDB? Is there a Teiid function to read those ...
0
votes
1
answer
87
views
Teiid Springboot starter file datasource
Using Teiid Springboot I would like to consume xml files from disk. I used to work with the old EAP/Wildfly Teiid project and the way to solve this was to use a resource adapter and then call a ...
0
votes
1
answer
161
views
How to get connection pool statistics from Teiid resource adapter?
I have resource adapter in wildfly-teiid-server with xml
<resource-adapter id="salesforcefour" statistics-enabled="true">
<module slot=&...
0
votes
1
answer
84
views
TEIID Importing ddl into vdb ddl
Currently my VDB DDL file is getting quite big. I want to split into different files using the following.
IMPORT FROM REPOSITORY "DDL-FILE"
INTO test OPTIONS ("ddl-file" '/path/to/...
0
votes
1
answer
39
views
Teiid embedded cache max entries
We are using query caching with Teiid embedded. But it is limited to 1024 resultset.
In teiid standalone we can change this property in the file standalone-teiid.xml.
But how can we change it in teiid ...
-1
votes
1
answer
21
views
Is possível two heterogenous databases as a only one transactional
My scenario has two different versions of the same system with different database structures, where 1.0 is in production and 2.0 in dev.
Version 2.0 needs to go into production using the data and ...
0
votes
1
answer
71
views
DayOfWeek function in teiid depends on locale when pushed down to Oracle
In the teiid documentation the following definition is stated for the DayOfWeek function
Return day of week (Sunday=1, Saturday=7)
But when the teiid is pushed down to Oracle the dayOfWeek output ...
0
votes
1
answer
23
views
When I try to install teiid in domain mode, teiid-jdbc socket-binging portall 31000 is not opened
My server group is using ha-sockets, and configuration in domain.xml is as following, after start server and slave, ss -lnap check the opened port, 31000 is not in list.
<socket-binding-group name=...
0
votes
1
answer
63
views
Extract and process select/update query constraints in Teiid ddl in Virtual DB
I am using Teiid vdb model where i need to extract query constraints inside the ddl and use it in a stored procedure to fetch results of my choice. For example, if I run following query :
select * ...
0
votes
1
answer
30
views
Datasource updation on adding new properties
Is there any teiid admin api to update a datasource with new properties? For e.g. I have created a datasource with some properties and now I want to add some connection properties to it, then is there ...
0
votes
1
answer
99
views
TEIID30492 Non-comparable expression of type object cannot be used in comparison
I am using setObject in Preparedstatement for the query SELECT * FROM table_name where column_name = ?. The column is of type DateTimeOffset of SQL Server and the object is OffsetDateTime. But it is ...
0
votes
1
answer
93
views
teiid sql join one row only
I have 2 tables in teiid vdb table a and table b, for every row in table a the table b can contain one or multi rows, how to join these 2 tables such that for every record in table a there is one ...