zhuangchong commented on PR #11493: URL: https://github.com/apache/dolphinscheduler/pull/11493#issuecomment-1220299338
> > tryGrammaticalAnalysisSqlColumnNames > > <img alt="image" width="636" src="https://user-images.githubusercontent.com/33984497/185550624-a216b662-7f9c-4761-83d2-d64ef75c495a.png"> > > sql statements is "select * from xxx",after execute the method tryGrammaticalAnalysisSqlColumnNames,the length of columnNames is zero > > tryGrammaticalAnalysisSqlColumnNames > > <img alt="image" width="636" src="https://user-images.githubusercontent.com/33984497/185550624-a216b662-7f9c-4761-83d2-d64ef75c495a.png"> > > sql statements is "select * from xxx",after execute the method tryGrammaticalAnalysisSqlColumnNames,the length of columnNames is zero As far as I know `'SELECT t.* FROM (%s) t WHERE 0 = 1'` uses jdbc to connect to the postgresql library, and when you execute get `MetaData`, you get the real column name, not t.a; if Hive executes The obtained column name is t.a, and your changes are no problem -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
