0
在HQL,我們有多捧場的Pig Latin
JOIN weather ON (weather.Year = flight.Year AND weather.Month = flight.Month and weather.Day=flight.DayofMonth)
在豬拉丁,是否有可能以適應它變成一個查詢?或者我必須單獨做並將它們結合起來?
在HQL,我們有多捧場的Pig Latin
JOIN weather ON (weather.Year = flight.Year AND weather.Month = flight.Month and weather.Day=flight.DayofMonth)
在豬拉丁,是否有可能以適應它變成一個查詢?或者我必須單獨做並將它們結合起來?
它可能看到here:
您也可以加入多個鍵。在任何情況下,你必須有 相同的數字鍵,他們必須相同或兼容類型
的
例子:
weather = load '/weather/files/' as (Year,Month,Day,Fieldx);
flight = load '/flight/files/' as (Year,Month,Day,Fieldy);
jnd = join weather by (Year,Month,Day), flight by (Year,Month,Day);
如果有什麼(JOIN天氣ON(vac.stationid =天氣。 ID和weather.Year = flight.Year和weather.Month = flight.Month和weather.Day = flight.DayofMonth)) –
@不好笑:字段名稱不重要,第一個鍵將與另一個的第一個鍵相連關係等等! – 54l3d