You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@hop.apache.org by "EricTonissen (via GitHub)" <gi...@apache.org> on 2026/02/13 12:01:49 UTC
[D] Problem with use of AS with an select statement (hop)
GitHub user EricTonissen created a discussion: Problem with use of AS with an select statement
I have this pipeline running using a DB2 database
<img width="870" height="423" alt="image" src="https://github.com/user-attachments/assets/2669d6ae-1afa-4f5c-93d9-4dc23bad429d" />
**The result on windows is as expected**
Query with AS.0 - SQL query : SELECT **pv.VARIABLE_VALUE AS config_name** FROM PROCESS_VARIABLES pv
Metadata structure of stream.0 - Signaling 'output done' to 1 output rowsets.
Write to log.0 -
Write to log.0 - ------------> Linenr 1------------------------------
Write to log.0 - Position = 1
Write to log.0 - **Fieldname = CONFIG_NAME**
Write to log.0 - Comments = CONFIG_NAME
Write to log.0 - Type = String
Write to log.0 - Length = 100
Write to log.0 - Precision = -1
Write to log.0 - FormatMask = null
Write to log.0 - Origin = Query with AS
Write to log.0 -
Write to log.0 - ====================
**The result on Linux is as NOT as expected**
Query with AS.0 - SQL query : SELECT **pv.VARIABLE_VALUE AS config_name** FROM PROCESS_VARIABLES pv
Metadata structure of stream.0 - Signaling 'output done' to 1 output rowsets.
Write to log.0 -
Write to log.0 - ------------> Linenr 1------------------------------
Write to log.0 - Position = 1
Write to log.0 - **Fieldname = VARIABLE_VALUE**
Write to log.0 - Comments = CONFIG_NAME
Write to log.0 - Type = String
Write to log.0 - Length = 100
Write to log.0 - Precision = -1
Write to log.0 - FormatMask = null
Write to log.0 - Origin = Query with AS
Write to log.0 -
Write to log.0 - ====================
Is there something wrong ?
The db2 jdbc drivers on both machines are the same.
GitHub link: https://github.com/apache/hop/discussions/6572
----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org
Re: [D] Problem with use of AS with an select statement (hop)
Posted by "EricTonissen (via GitHub)" <gi...@apache.org>.
GitHub user EricTonissen added a comment to the discussion: Problem with use of AS with an select statement
Adding this to the attributes did the trick "EXTRA_OPTION_DB2.useJDBC4ColumnNameAndLabelSemantics": "false",
GitHub link: https://github.com/apache/hop/discussions/6572#discussioncomment-15834265
----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org
Re: [D] Problem with use of AS with an select statement (hop)
Posted by "bamaer (via GitHub)" <gi...@apache.org>.
GitHub user bamaer added a comment to the discussion: Problem with use of AS with an select statement
I can't test this, but it looks like setting the option `useJDBC4ColumnNameAndLabelSemantics` with a value of `1` could help to resolve this.
GitHub link: https://github.com/apache/hop/discussions/6572#discussioncomment-15795516
----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org
Re: [D] Problem with use of AS with an select statement (hop)
Posted by "bamaer (via GitHub)" <gi...@apache.org>.
GitHub user bamaer added a comment to the discussion: Problem with use of AS with an select statement
The difference between Windows and Linux is a bit surprising, but afaik, that's been an issue with the DB2 JDBC driver for a loooong time.
GitHub link: https://github.com/apache/hop/discussions/6572#discussioncomment-15795372
----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org