<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why is Splunk DB Connect changing the table output of my query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147312#M185302</link>
    <description>&lt;P&gt;Okay I opened an support Case. I will give an answer here if I have some news from Splunk Support&lt;/P&gt;</description>
    <pubDate>Fri, 20 Feb 2015 15:02:27 GMT</pubDate>
    <dc:creator>PPape</dc:creator>
    <dc:date>2015-02-20T15:02:27Z</dc:date>
    <item>
      <title>Why is Splunk DB Connect changing the table output of my query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147310#M185300</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I found a strange behavior with my mySQL Server. &lt;/P&gt;

&lt;P&gt;I try to do this query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;select t.change_time, t.create_time_unix, t.tn, t.title, t.timeout, q.name AS Queue, ty.name AS 'type', s.name AS Service 
from ticket as t 
inner join queue as q 
on t.queue_id = q.id 
inner join ticket_type as ty 
on t.type_id = ty.id 
inner join service as s 
on t.service_id = s.id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I expect a table like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;change_time, create_time_unix, tn, title, timeout, Queue, type, Service 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this command works in SQL Studio.&lt;/P&gt;

&lt;P&gt;But when I'm using it with the DB Connect App, it gives me back a table like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;change_time, create_time_unix, tn, title, timeout, name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and name has the data from Service.&lt;/P&gt;

&lt;P&gt;Do you guys have an idea what's going wrong and how I can manage this?&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2015 14:01:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147310#M185300</guid>
      <dc:creator>PPape</dc:creator>
      <dc:date>2015-02-19T14:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk DB Connect changing the table output of my query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147311#M185301</link>
      <description>&lt;P&gt;Thanks for editing ppablo! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Any new Ideas here?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2015 08:53:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147311#M185301</guid>
      <dc:creator>PPape</dc:creator>
      <dc:date>2015-02-20T08:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk DB Connect changing the table output of my query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147312#M185302</link>
      <description>&lt;P&gt;Okay I opened an support Case. I will give an answer here if I have some news from Splunk Support&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2015 15:02:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147312#M185302</guid>
      <dc:creator>PPape</dc:creator>
      <dc:date>2015-02-20T15:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk DB Connect changing the table output of my query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147313#M185303</link>
      <description>&lt;P&gt;No answer from Splunk Support yet. But I'll keep you updated. Some new ideas here?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 07:48:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147313#M185303</guid>
      <dc:creator>PPape</dc:creator>
      <dc:date>2015-02-23T07:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk DB Connect changing the table output of my query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147314#M185304</link>
      <description>&lt;P&gt;Splunk Support answered.&lt;/P&gt;

&lt;P&gt;They can reproduce this issue it seems like there is an bug in the JDBC Driver with mySQL.&lt;BR /&gt;
Because on MSSQL it works correctly.&lt;BR /&gt;
Splunk Support opend an bug report and gave it to their dev team to verify.&lt;/P&gt;

&lt;P&gt;I'll keep you informed when I have some new Infos.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2015 08:52:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147314#M185304</guid>
      <dc:creator>PPape</dc:creator>
      <dc:date>2015-02-24T08:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk DB Connect changing the table output of my query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147315#M185305</link>
      <description>&lt;P&gt;No problem @PPape&lt;/P&gt;

&lt;P&gt;I'm the content manager for Splunk Answers, so I edit most of the posts that come up on the site to make them easier to find for the experts that can answer them and for other users who are searching for solutions to the same questions.&lt;/P&gt;

&lt;P&gt;Glad you got a response from Splunk support &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Once you hear back some concrete info, it'll be great if you can share it on this post. Hope you get an answer soon.&lt;/P&gt;

&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2015 02:15:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147315#M185305</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2015-02-25T02:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk DB Connect changing the table output of my query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147316#M185306</link>
      <description>&lt;P&gt;This is MySQL JDBC driver issue:&lt;BR /&gt;
&lt;A href="http://www.anujgakhar.com/2012/01/11/railo-mysql-and-column-aliases/" target="_blank"&gt;http://www.anujgakhar.com/2012/01/11/railo-mysql-and-column-aliases/&lt;/A&gt;&lt;BR /&gt;
&lt;EM&gt;The JDBC specification states that a column name is not changed by “AS”, it’s always the actual name of the column (if such a name exists), so that clients can build a query based on metadata alone. One can only find the name used in the ‘AS’ through ResultSetMetaData’s “getColumnLabel()” method.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Please use this SQL instead:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;select t.change_time, t.create_time_unix, t.tn, t.title, t.timeout, q.Queue, ty.type, s.Service&lt;BR /&gt;
from ticket as t&lt;BR /&gt;
inner join (select id, name as Queue from queue) as q &lt;BR /&gt;
on t.queue_id = q.id &lt;BR /&gt;
inner join (select id, name as 'type' from ticket_type) as ty &lt;BR /&gt;
on t.type_id = ty.id &lt;BR /&gt;
inner join (select id, name as Service from service) as s &lt;BR /&gt;
on t.service_id = s.id&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;MSSQL doesn't have this issue&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:00:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147316#M185306</guid>
      <dc:creator>mchang_splunk</dc:creator>
      <dc:date>2020-09-28T19:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk DB Connect changing the table output of my query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147317#M185307</link>
      <description>&lt;P&gt;This is it! Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2015 08:06:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147317#M185307</guid>
      <dc:creator>PPape</dc:creator>
      <dc:date>2015-02-26T08:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk DB Connect changing the table output of my query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147318#M185308</link>
      <description>&lt;P&gt;Okay this creates a very huge Database load.&lt;/P&gt;

&lt;P&gt;A coworker had the Idea of an View as workaround.&lt;BR /&gt;
Now I'll test if this is a bit more recource friendly.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2015 09:30:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147318#M185308</guid>
      <dc:creator>PPape</dc:creator>
      <dc:date>2015-02-26T09:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk DB Connect changing the table output of my query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147319#M185309</link>
      <description>&lt;P&gt;Okay, the solution with the view is much mor efficient. &lt;BR /&gt;
But thank you @mchang_splunk for your quick help.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2015 14:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-DB-Connect-changing-the-table-output-of-my-query/m-p/147319#M185309</guid>
      <dc:creator>PPape</dc:creator>
      <dc:date>2015-02-26T14:03:56Z</dc:date>
    </item>
  </channel>
</rss>

